From e23b37181bc708e6cbc2e327dc33efd2f4130e01 Mon Sep 17 00:00:00 2001 From: Absurdon Date: Fri, 10 Mar 2023 15:43:09 +0000 Subject: [PATCH] Updating Dockerfile --- Dockerfile | 9 ++------- package.json | 2 +- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5aad386..89931f3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/package.json b/package.json index 72ef9d8..e868e27 100644 --- a/package.json +++ b/package.json @@ -86,7 +86,7 @@ "terser-brunch": "^4.0.0" }, "engines": { - "node": ">=10.13.0" + "node": ">=18.14.2" }, "snyk": true } \ No newline at end of file