Skip to content

Commit f18044f

Browse files
Merge pull request #2728 from hardys/dockerfiles
🌱 Dockerfile: remove SHELL for OCI compliance
2 parents 103b4fd + ebce7c8 commit f18044f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,14 @@ RUN --mount=type=cache,target=/root/.cache/go-build \
5353
# Use distroless as minimal base image to package the manager binary
5454
# Refer to https://github.com/GoogleContainerTools/distroless for more details
5555
FROM gcr.io/distroless/static:debug
56-
SHELL ["/busybox/sh", "-c"]
5756
WORKDIR /
5857
COPY --from=builder /etc/ssl/certs /etc/ssl/certs
5958
COPY --from=builder workspace/bin/kcp-front-proxy workspace/bin/kcp workspace/bin/virtual-workspaces /
6059
COPY --from=builder workspace/bin/kubectl-* /usr/local/bin/
6160
COPY --from=builder workspace/bin/kubectl /usr/local/bin/
6261
ENV KUBECONFIG=/etc/kcp/config/admin.kubeconfig
6362
# Use uid of nonroot user (65532) because kubernetes expects numeric user when applying pod security policies
64-
RUN mkdir -p /data && \
65-
chown 65532:65532 /data
63+
RUN ["/busybox/sh", "-c", "mkdir -p /data && chown 65532:65532 /data"]
6664
USER 65532:65532
6765
WORKDIR /data
6866
VOLUME /data

0 commit comments

Comments
 (0)