diff --git a/.dockerignore b/.dockerignore index b06e6a8..520470a 100644 --- a/.dockerignore +++ b/.dockerignore @@ -3,5 +3,6 @@ !main.go !/lib !/templates +!/static !/go.mod !/go.sum \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index ed1bbb5..e06728e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Build Stage -FROM debian:bullseye +FROM debian:bullseye-slim ENV IS_DOCKER TRUE LABEL org.opencontainers.image.source https://github.com/JustKato/drive-health @@ -24,7 +24,6 @@ ENV PATH /usr/local/go/bin:$PATH ENV GOPATH=/go ENV PATH=$GOPATH/bin:$PATH ENV GO111MODULE=on -ENV DIST_DIR=/app # Create the directory and set it as the working directory WORKDIR /app