From 242d962c7dbde0085df5c4318bff2d97a76cf989 Mon Sep 17 00:00:00 2001 From: Robert Lundsten Date: Wed, 10 Jan 2024 15:59:10 +0100 Subject: [PATCH] ci: use node --- Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index dbd33c1..04af486 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:16-alpine +FROM node:18-alpine # Labels LABEL vendor="Onify" @@ -6,7 +6,9 @@ LABEL code="nodejs" # Create app directory RUN mkdir -p /usr/app -RUN mkdir -p /.npm + +# Added this config because of bug in node18 alpine image https://github.com/nodejs/docker-node/issues/1749 +ENV npm_config_cache /tmp/npm WORKDIR /usr/app @@ -23,4 +25,4 @@ RUN npm prune --production ENV NODE_ENV=production -ENTRYPOINT [ "npm", "start", "--silent" ] +ENTRYPOINT [ "npm", "start" ]