Skip to content

Commit 176b6f0

Browse files
committed
fix: add pnpm, node and git to docker image
1 parent 94dc615 commit 176b6f0

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

.vscode/settings.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
{
2-
// "prettier.prettierPath": "./node_modules/prettier"
3-
}
1+
{}

Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,12 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o manager main.go
2626

2727
# Use distroless as minimal base image to package the manager binary
2828
# Refer to https://github.com/GoogleContainerTools/distroless for more details
29-
FROM gcr.io/distroless/static:nonroot
29+
FROM node:20-alpine
30+
31+
RUN apk update && apk add --no-cache libc6-compat git curl
32+
RUN corepack enable
33+
RUN corepack enable && corepack prepare pnpm@8.6.5 --activate
34+
3035
WORKDIR /
3136
COPY --from=builder /workspace/manager .
3237
USER 65532:65532

0 commit comments

Comments
 (0)