From e2f2abcea7ad7a3361d16e75b3f8453ae3c0811b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Darko=20Kri=C5=BEi=C4=87?= Date: Sat, 2 Mar 2024 18:19:11 +0100 Subject: [PATCH] Improving dockerfile --- .dockerignore | 8 ++++++++ Dockerfile | 6 +++--- entrypoint.sh | 0 3 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 .dockerignore delete mode 100644 entrypoint.sh diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..a8099b6 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,8 @@ +Dockerfile +action.yaml +EXAMPLE.md +LICENSE.md +README.md +.github +.env +.gitignore diff --git a/Dockerfile b/Dockerfile index 82e9d19..4b33b29 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM golang:1.22 -COPY . /app WORKDIR /app -RUN go build -o main . -ENTRYPOINT ["/app/main"] +COPY . /app +RUN go build . +ENTRYPOINT ["/app/deployment-overview"] diff --git a/entrypoint.sh b/entrypoint.sh deleted file mode 100644 index e69de29..0000000