-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
5 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |