Skip to content

Commit

Permalink
fix: update npm, deps and node
Browse files Browse the repository at this point in the history
  • Loading branch information
rorlic committed Dec 27, 2024
1 parent 3600704 commit f18ea5d
Show file tree
Hide file tree
Showing 3 changed files with 352 additions and 395 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# build environment
FROM node:18-bullseye-slim AS builder
FROM node:22-bullseye-slim AS builder
# fix vulnerabilities
ARG NPM_TAG=9.6.4
ARG NPM_TAG=11.0.0
RUN npm install -g npm@${NPM_TAG}
# build it
WORKDIR /build
Expand All @@ -10,7 +10,7 @@ RUN npm ci
RUN npm run build

# run environment
FROM node:18.16.0-bullseye-slim
FROM node:22.12.0-bullseye-slim
# fix vulnerabilities
# note: trivy insists this to be on the same RUN line
RUN apt-get -y update && apt-get -y upgrade
Expand All @@ -31,7 +31,7 @@ ENTRYPOINT ["/usr/bin/dumb-init", "--"]
# fix vulnerabilities
RUN npm install -g npm@${NPM_TAG}
# install dependancies
ENV NODE_ENV production
ENV NODE_ENV=production
RUN npm ci --omit=dev
USER node
CMD ["sh", "-c", "node ./server.js --host=0.0.0.0 --port=80 --silent=${SILENT} --connection-uri=${CONNECTION_URI}"]
Loading

0 comments on commit f18ea5d

Please sign in to comment.