Updated docker file to use production environment instead of dev

This commit is contained in:
Luke Else 2023-09-27 19:25:07 +01:00
parent e9ca6a2697
commit adf372f533

View File

@ -14,7 +14,7 @@ FROM node:lts-slim as run
WORKDIR /app
COPY --from=build /app/package.json ./package.json
COPY --from=build /app/build ./build
RUN npm install --production
RUN npm install --omit=dev
EXPOSE 3000
ENTRYPOINT [ "npm", "run", "start" ]