mirror of
https://github.com/ENSL/ensl_gathers.git
synced 2024-11-10 07:11:53 +00:00
Updating Dockerfile
This commit is contained in:
parent
93b0e6b8f7
commit
e23b37181b
2 changed files with 3 additions and 8 deletions
|
@ -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"]
|
||||
|
|
|
@ -86,7 +86,7 @@
|
|||
"terser-brunch": "^4.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=10.13.0"
|
||||
"node": ">=18.14.2"
|
||||
},
|
||||
"snyk": true
|
||||
}
|
Loading…
Reference in a new issue