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 0a6ede8125
commit 94de27084c

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" ]