Skip to content

Commit

Permalink
Be more restrictive while building the image
Browse files Browse the repository at this point in the history
  • Loading branch information
dehort committed Apr 16, 2024
1 parent 20e8d1d commit 8cbb76c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.docker
.podman
.kube
.git
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
FROM registry.access.redhat.com/ubi8/go-toolset as builder

WORKDIR /go/src/app
COPY . .
COPY internal/ internal/
COPY cmd/ cmd/
COPY main.go main.go

USER 0

Expand Down

0 comments on commit 8cbb76c

Please sign in to comment.