Skip to content

Commit 8250533

Browse files
authored
Update dockerfiles to contain user 1001 (#982)
Signed-off-by: perdasilva <[email protected]>
1 parent 1e6c7a7 commit 8250533

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

index.Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ COPY ["nsswitch.conf", "/etc/nsswitch.conf"]
66
COPY database ./
77
COPY --from=builder /bin/opm /opm
88
COPY --from=builder /bin/grpc_health_probe /bin/grpc_health_probe
9+
USER 1001
910
EXPOSE 50051
1011
ENTRYPOINT ["/opm"]
1112
CMD ["registry", "serve", "--database", "index.db"]

registry.Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ FROM scratch
1313
COPY ["nsswitch.conf", "/etc/nsswitch.conf"]
1414
COPY --from=builder /build/bin/registry-server /registry-server
1515
COPY --from=builder /bin/grpc_health_probe /bin/grpc_health_probe
16+
USER 1001
1617
EXPOSE 50051
1718
ENTRYPOINT ["/registry-server"]
1819
CMD ["--database", "/bundles.db"]

release/goreleaser.opm.Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ FROM gcr.io/distroless/static:debug
77
COPY --from=grpc_health_probe /ko-app/grpc-health-probe /bin/grpc_health_probe
88
COPY ["nsswitch.conf", "/etc/nsswitch.conf"]
99
COPY opm /bin/opm
10+
USER 1001
1011
ENTRYPOINT ["/bin/opm"]

upstream-example.Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ COPY ["nsswitch.conf", "/etc/nsswitch.conf"]
88
COPY --from=builder /bundles.db /bundles.db
99
COPY --from=builder /bin/registry-server /registry-server
1010
COPY --from=builder /bin/grpc_health_probe /bin/grpc_health_probe
11+
USER 1001
1112
EXPOSE 50051
1213
ENTRYPOINT ["/registry-server"]
1314
CMD ["--database", "bundles.db"]

0 commit comments

Comments
 (0)