From e5738d1f5b7a8d377065bd753ad630bc661208df Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Wed, 8 May 2024 21:19:20 +0100 Subject: [PATCH] Update start command, and remove --prod flag from dev install script in Dockerfile --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7a95405..a01ddd8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Specify the Node.js version to use -ARG NODE_VERSION=16 +ARG NODE_VERSION=21 # Specify the Debian version to use, the default is "bullseye" ARG DEBIAN_VERSION=bullseye @@ -30,7 +30,7 @@ COPY package.json yarn.lock ./ # Run yarn install to install dependencies and clear yarn cache RUN apt-get update && \ - yarn install --production --frozen-lockfile --network-timeout 100000 && \ + yarn install --frozen-lockfile --network-timeout 100000 && \ rm -rf /app/node_modules/.cache # Copy all files to working directory @@ -59,4 +59,4 @@ EXPOSE ${PORT:-3000} ENV CHROME_PATH='/usr/bin/chromium' # Define the command executed when the container starts and start the server.js of the Node.js application -CMD ["yarn", "serve"] \ No newline at end of file +CMD ["yarn", "start"]