diff options
author | Matthew Lemon <y@yulqen.org> | 2024-04-22 15:30:07 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-04-22 15:31:00 +0100 |
commit | 3e0defc7b5d7a5498aec6851ae00b026c7fa6817 (patch) | |
tree | c85d12267d1c36c272f5966987a6960c0316f014 /Dockerfile | |
parent | 05bef10708775eb608dd68bedd3bb4b796ba6920 (diff) |
Further changes to Dockerfile
Diffstat (limited to '')
-rw-r--r-- | Dockerfile | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -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 |