Include assets in docker image

This commit is contained in:
darmiel 2021-05-15 14:56:51 +02:00
parent fcf2f2372a
commit 9af7817c16

View file

@ -20,5 +20,10 @@ RUN GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o yaxc .
# Output Image
FROM alpine
COPY --from=builder /usr/src/app/yaxc .
RUN ls -larth /
ENTRYPOINT ["/yaxc"]
# Copy assets
RUN mkdir /assets
COPY --from=builder /usr/src/app/assets/ /assets
RUN ls -larth /assets
ENTRYPOINT ["/yaxc"]