Dockerfile has updated build command, and uses global start

This commit is contained in:
Alicia Sykes 2023-08-10 21:24:52 +01:00
parent 20cc52a304
commit 0fd0e537f7

View File

@ -7,6 +7,7 @@ RUN apt-get update && \
chmod 755 /usr/bin/chromium && \ chmod 755 /usr/bin/chromium && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*
RUN npm install --force RUN npm install --force
EXPOSE 8888 RUN npm run build
EXPOSE ${PORT:-3000}
ENV CHROME_PATH='/usr/bin/chromium' ENV CHROME_PATH='/usr/bin/chromium'
CMD ["npm", "run", "serve"] CMD ["npm", "start"]