From e25029433fe8f4666a4da0d51a4df97969b94e28 Mon Sep 17 00:00:00 2001 From: David Ankin Date: Sat, 1 Apr 2023 09:51:32 -0400 Subject: [PATCH] Update dockerfile to node 12, s/install/ci/ This introduces a relatively newer node version, as well as speeds up the build time by leveraging the lock-file to save users time (and bandwidth! us providers now meter this and charge for overage) when building this image. --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index f3013ac..71305b4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,8 @@ -FROM node:8 +FROM node:12-alpine LABEL maintainer "William Hilton " WORKDIR /srv COPY . . -RUN npm install +RUN npm ci EXPOSE 80 ENV PORT=80 CMD [ "npm", "start" ]