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" ]