Add frontend Dockerfile

This commit is contained in:
Andrea Fazzi 2021-11-01 11:38:41 +01:00
parent 1c310116ed
commit 904e7c708d

12
frontend/Dockerfile Normal file
View file

@ -0,0 +1,12 @@
FROM node AS build
WORKDIR /app
COPY package.json ./
COPY package-lock.json ./
RUN npm install
COPY . ./
RUN npm run build
FROM nginx:1.19-alpine
COPY --from=build /app/public /usr/share/nginx/html