Updated docker file to use production environment instead of dev
This commit is contained in:
parent
0a6ede8125
commit
94de27084c
@ -14,7 +14,7 @@ FROM node:lts-slim as run
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=build /app/package.json ./package.json
|
COPY --from=build /app/package.json ./package.json
|
||||||
COPY --from=build /app/build ./build
|
COPY --from=build /app/build ./build
|
||||||
RUN npm install --production
|
RUN npm install --omit=dev
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
ENTRYPOINT [ "npm", "run", "start" ]
|
ENTRYPOINT [ "npm", "run", "start" ]
|
Loading…
Reference in New Issue
Block a user