Add frontend Dockerfile

This commit is contained in:
Andrea Fazzi 2021-11-01 11:35:39 +01:00
parent f9f1698355
commit 1c310116ed

12
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