From 9af7817c165321d5b0c08832047647d68de43514 Mon Sep 17 00:00:00 2001 From: darmiel <71837281+darmiel@users.noreply.github.com> Date: Sat, 15 May 2021 14:56:51 +0200 Subject: [PATCH] Include assets in docker image --- Dockerfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0c24fe4..0145678 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] \ No newline at end of file