Skip to content

Commit 659907d

Browse files
authored
Merge pull request #3434 from embik/remove-data-volume
Remove VOLUME directive from Dockerfile
2 parents 973ea74 + ed3a652 commit 659907d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,9 @@ COPY --from=builder /etc/ssl/certs /etc/ssl/certs
6464
COPY --from=builder workspace/bin/kcp-front-proxy workspace/bin/kcp workspace/bin/virtual-workspaces workspace/bin/cache-server /
6565
COPY --from=builder workspace/bin/kubectl-* /usr/local/bin/
6666
COPY --from=builder workspace/bin/kubectl /usr/local/bin/
67+
6768
ENV KUBECONFIG=/etc/kcp/config/admin.kubeconfig
68-
# Use uid of nonroot user (65532) because kubernetes expects numeric user when applying pod security policies
69-
RUN ["/busybox/sh", "-c", "mkdir -p /data && chown 65532:65532 /data"]
7069
USER 65532:65532
71-
WORKDIR /data
72-
VOLUME /data
70+
7371
ENTRYPOINT ["/kcp"]
7472
CMD ["start"]

0 commit comments

Comments
 (0)