Skip to content

Commit aa9601b

Browse files
committed
fix(Dockerfile): update Node.js version to 18-slim and adjust npm install for better dependency handling
1 parent b61f6af commit aa9601b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/frontend/submission_form/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
FROM node:8.2.1 as build-stage
1+
FROM node:18-slim as build-stage
22
RUN mkdir /usr/src/app
33
WORKDIR /usr/src/app
44
ENV PATH /usr/src/app/node_modules/.bin:$PATH
55
COPY src/frontend/submission_form .
6-
RUN npm install --silent
6+
RUN npm cache clean --force
7+
RUN npm install --legacy-peer-deps --silent
78
RUN npm run build --production
89

910
FROM nginx:1.15.2-alpine

0 commit comments

Comments
 (0)