Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@

* Run as a non-root user for Kubernetes compatibility.

## 0.2.1

FEATURES
Expand Down
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ WORKDIR /server
# Copy the binary from the build stage
COPY --from=devbuild /build/vault-mcp-server .
COPY --from=certbuild /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
# Run as a non-root user for Kubernetes compatibility.
USER 65532:65532
# Command to run the server
CMD ["./vault-mcp-server", "stdio"]
Comment on lines 40 to 45

Expand All @@ -63,6 +65,8 @@ LABEL version=$PRODUCT_VERSION
LABEL revision=$PRODUCT_REVISION
COPY dist/$TARGETOS/$TARGETARCH/$BIN_NAME /bin/vault-mcp-server
COPY --from=certbuild /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
# Run as a non-root user for Kubernetes compatibility.
USER 65532:65532
CMD ["/bin/vault-mcp-server", "stdio"]
Comment on lines 66 to 70

# ===================================
Expand Down
Loading