summaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorYulqen <246857+yulqen@users.noreply.github.com>2024-04-22 15:32:14 +0100
committerGitHub <noreply@github.com>2024-04-22 15:32:14 +0100
commitb465c1667dff0fbf2a9b18c577bd10c989beefa2 (patch)
treec85d12267d1c36c272f5966987a6960c0316f014 /Dockerfile
parentf2209833a4c16ba32f91db9f2fbf2e7b22d99f79 (diff)
parent3e0defc7b5d7a5498aec6851ae00b026c7fa6817 (diff)
Merge pull request #20 from defencedigital/change-dockerfile
Further changes to Dockerfile
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile13
1 files changed, 12 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index f2e71d6..71171cc 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -13,7 +13,18 @@ USER root
COPY go.mod ./
RUN go mod download && go mod verify
-COPY . .
+# instead of doing COPY . . here, I want to be specific about the files I want to copy
+# this way if I add a new file to the project, it will not be copied over
+
+# Can this be refactored?
+COPY ./cmd ./cmd
+COPY ./internal ./internal
+COPY ./postgresql ./postgresql
+COPY ./ui ./ui
+COPY go.sum .
+COPY go.mod .
+COPY sonar-project.properties .
+
RUN chown -R app:app /app
# Create a directory for the binary