Skip to content

Commit

Permalink
image: Add entrypoint to container image
Browse files Browse the repository at this point in the history
* Ignore local ./bin for container image builds
* add .kcp directory to container image

Signed-off-by: Micah Hausler <[email protected]>
  • Loading branch information
micahhausler committed May 10, 2022
1 parent b4266ee commit c6f1bbf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# Ignore server only used for e2e testing
cmd/test-server
bin/
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,10 @@ RUN CGO_ENABLED=0 make
FROM alpine:3.15
WORKDIR /
COPY --from=builder workspace/bin/kcp-front-proxy workspace/bin/kcp workspace/bin/virtual-workspaces /
RUN mkdir -p /data && \
chown 65532:65532 /data
USER 65532:65532
WORKDIR /data
VOLUME /data
ENTRYPOINT ["/kcp"]
CMD ["start"]

0 comments on commit c6f1bbf

Please sign in to comment.