Skip to content

Commit 561f6b6

Browse files
authored
build images with username (#937)
Signed-off-by: Miguel Martinez Trivino <[email protected]>
1 parent f2ee48b commit 561f6b6

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

app/artifact-cas/Dockerfile.goreleaser

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@ FROM scratch
55
COPY ./artifact-cas /
66
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
77

8+
USER 1001
9+
810
ENTRYPOINT [ "/artifact-cas", "--conf", "/data/conf"]

app/cli/Dockerfile.goreleaser

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@ FROM scratch
55
COPY ./chainloop /
66
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
77

8+
USER 1001
9+
810
ENTRYPOINT [ "./chainloop"]

app/controlplane/Dockerfile.goreleaser

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,6 @@ COPY ./chainloop-plugin-smtp /plugins/
1414
# tmp is required for the plugins to run
1515
COPY --from=builder /tmp /tmp
1616

17+
USER 1001
18+
1719
ENTRYPOINT [ "/control-plane", "--conf", "/data/conf"]

app/controlplane/Dockerfile.migrations

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@
33
FROM arigaio/atlas@sha256:37b8b163719e2f9baf5c97099e8d0772bc1bd84f392e402afcc3e565d11e074f
44

55
COPY app/controlplane/pkg/data/ent/migrate/migrations /migrations
6+
7+
USER 1001

0 commit comments

Comments
 (0)