Updated docker file to use production environment instead of dev
This commit is contained in:
parent
e9ca6a2697
commit
adf372f533
@ -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" ]
|
Loading…
x
Reference in New Issue
Block a user