Skip to content

Commit

Permalink
Distroless docker-image
Browse files Browse the repository at this point in the history
  • Loading branch information
Oddsor committed Nov 13, 2024
1 parent b4c284c commit 9dc5a7f
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
FROM navikt/node-express:18

# Workaround: får tilfeldige feil ved npm install uten neste linje
RUN npm config set unsafe-perm=true

WORKDIR /app
FROM gcr.io/distroless/nodejs22-debian12

COPY ./dist .
COPY ./server /server
COPY package.json package.json

EXPOSE 3000
ENV NODE_EXTRA_CA_CERTS /etc/ssl/ca-bundle.pem

ENTRYPOINT ["sh", "-c"]
CMD ["node server/index.cjs"]
CMD ["server/index.cjs"]

0 comments on commit 9dc5a7f

Please sign in to comment.