From 0fd0e537f7b74f2ce75dbb3c02d820152d8d7dae Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Thu, 10 Aug 2023 21:24:52 +0100 Subject: [PATCH] Dockerfile has updated build command, and uses global start --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 15cb5cd..33c3df7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,7 @@ RUN apt-get update && \ chmod 755 /usr/bin/chromium && \ rm -rf /var/lib/apt/lists/* RUN npm install --force -EXPOSE 8888 +RUN npm run build +EXPOSE ${PORT:-3000} ENV CHROME_PATH='/usr/bin/chromium' -CMD ["npm", "run", "serve"] +CMD ["npm", "start"]