Create Dockerfile for front production

This commit is contained in:
Charles Bochet
2023-04-13 12:40:44 +02:00
parent c6a60824b3
commit afab5940b3
3 changed files with 11 additions and 31 deletions

View File

@ -0,0 +1,11 @@
FROM node:18-alpine as front
WORKDIR /app/front
COPY ./front .
RUN npm install --production
RUN npm run build
RUN npm install -g serve
CMD ["serve", "-s", "build"]