Skip to content

Commit

Permalink
trying to fix checks
Browse files Browse the repository at this point in the history
  • Loading branch information
fjsnogueira committed Apr 12, 2024
1 parent 56ee01b commit 3d4e17a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ COPY . .
RUN go build -o /app/2ms .

# Runtime image
FROM cgr.dev/chainguard/git@sha256:a63f65075e5dfb6b040ace5d7a0982b79ed572f196de9d33b69f2a3c5b9665f9
FROM cgr.dev/chainguard/bash:latest

Check warning on line 17 in Dockerfile

View workflow job for this annotation

GitHub Actions / kics

[MEDIUM] Image Version Using 'latest'

When building images, always tag them with useful tags which codify version information, intended destination (prod or test, for instance), stability, or other information that is useful when deploying the application in different environments. Do not rely on the automatically-created latest tag

RUN git config --global --add safe.directory /repo
#RUN git config --global --add safe.directory /repo

COPY --from=builder /app/2ms /2ms
COPY --from=builder /app/2ms .

ENTRYPOINT ["/2ms"]
ENTRYPOINT [ "./2ms" ]

0 comments on commit 3d4e17a

Please sign in to comment.