Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
Node
  • Loading branch information
theRealKLH authored Feb 3, 2024
1 parent d13cda0 commit 778006b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:21 as build-env
FROM node:bookworm-slim as build-env

### Install Go ###
ARG TARGETPLATFORM
Expand All @@ -21,7 +21,7 @@ RUN cd /app && \
go generate && \
go build -tags='json1' -ldflags "-w -X main.version=$RELVER -X main.commit=$vcs-ref" -o xbvr main.go

FROM gcr.io/distroless/base
FROM gcr.io/distroless/nodejs20-debian11
COPY --from=build-env /app/xbvr /

EXPOSE 9998-9999
Expand Down

0 comments on commit 778006b

Please sign in to comment.