update docker file to load .env

This commit is contained in:
Chris Cromer 2022-07-22 22:17:57 -04:00
parent 0f14fa8faf
commit 4b26d6f0a5
Signed by: cromer
GPG Key ID: FA91071797BEEEC2

View File

@ -8,4 +8,5 @@ RUN go build -buildvcs=false -v -o /usr/local/bin/ ./...
FROM golang:1.18.3 FROM golang:1.18.3
WORKDIR /usr/local/bin WORKDIR /usr/local/bin
COPY --from=builder /usr/local/bin/backend . COPY --from=builder /usr/local/bin/backend .
COPY .env /usr/local/bin
CMD ["backend", "migrate", "serve"] CMD ["backend", "migrate", "serve"]