Skip to content

Commit dd1c011

Browse files
jcubicCopilot
andauthored
fix: update node version (#25)
* fix: update node version * apply CodeRabbit CR fix * Apply suggestions from code review Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 097a786 commit dd1c011

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

Dockerfile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1-
FROM node:8
2-
LABEL maintainer "William Hilton <wmhilton@gmail.com>"
1+
FROM node:22-slim
2+
LABEL maintainer="William Hilton <wmhilton@gmail.com>"
33
WORKDIR /srv
4+
COPY package.json package-lock.json ./
5+
RUN npm ci --omit=dev
46
COPY . .
5-
RUN npm install
7+
RUN chown -R node:node /srv
8+
USER node
69
EXPOSE 80
710
ENV PORT=80
8-
CMD [ "npm", "start" ]
11+
CMD [ "sh", "-c", "exec node bin.js run --port=${PORT:-80}" ]
912

0 commit comments

Comments
 (0)