diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..b06e6a8 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,7 @@ +/** + +!main.go +!/lib +!/templates +!/go.mod +!/go.sum \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index b22c9ec..ed1bbb5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,7 +27,7 @@ ENV GO111MODULE=on ENV DIST_DIR=/app # Create the directory and set it as the working directory -WORKDIR $DIST_DIR +WORKDIR /app # Copy the Go files and download dependencies COPY go.mod go.sum ./