From f2c84fb6b2b372d3d2b396ae8f481603227bd0a1 Mon Sep 17 00:00:00 2001 From: Daniel Legt Date: Mon, 22 Jan 2024 02:23:43 +0200 Subject: [PATCH] Fixed Dockerfile --- .dockerignore | 7 +++++++ Dockerfile | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .dockerignore 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 ./