Updating Dockerfile

This commit is contained in:
Absurdon 2023-03-10 15:43:09 +00:00
parent 93b0e6b8f7
commit e23b37181b
2 changed files with 3 additions and 8 deletions

View file

@ -1,4 +1,4 @@
FROM bitnami/node:12 AS builder
FROM bitnami/node:18 AS builder
COPY package*.json /app/
WORKDIR /app
@ -8,7 +8,7 @@ COPY . /app
RUN npm run compile_production && \
npm prune --production
FROM node:lts-alpine AS production
FROM node:18-alpine AS production
ENV NODE_ENV="production"
ENV PORT=8000
@ -19,9 +19,4 @@ RUN /bin/mkdir -p /home/web/tmp/public
COPY --chown=web:web --from=builder /app /app
WORKDIR /app
RUN /bin/cp -r ./public /home/web/tmp/public && \
/bin/touch /home/web/tmp/.updatePublic
EXPOSE 8000
CMD ["node", "index.mjs"]

View file

@ -86,7 +86,7 @@
"terser-brunch": "^4.0.0"
},
"engines": {
"node": ">=10.13.0"
"node": ">=18.14.2"
},
"snyk": true
}