Fix Dockerfile and Makefile

This commit is contained in:
James Mills
2021-01-30 14:07:19 +10:00
parent 4529ea3196
commit 0610914b9d
5 changed files with 358 additions and 18 deletions

View File

@@ -36,9 +36,7 @@ COPY ./internal/auth/*.go ./internal/auth/
COPY ./internal/session/*.go ./internal/session/
COPY ./internal/passwords/*.go ./internal/passwords/
COPY ./internal/webmention/*.go ./internal/webmention/
COPY ./types/*.go ./types/
COPY ./types/retwt/*.go ./types/retwt/
COPY ./cmd/twtd/*.go ./cmd/twtd/
COPY ./cmd/spyda/*.go ./cmd/spyda/
# Version/Commit (there there is no .git in Docker build context)
# NOTE: This is fairly low down in the Dockerfile instructions so
@@ -62,7 +60,7 @@ VOLUME /data
# force cgo resolver
ENV GODEBUG=netdns=cgo
COPY --from=build /src/twtd /twtd
COPY --from=build /src/spyda /spyda
ENTRYPOINT ["/twtd"]
ENTRYPOINT ["/spyda"]
CMD [""]