add dockerfile

This commit is contained in:
Torma Kristóf 2020-12-05 13:29:43 +01:00
parent be5c76b5ab
commit 628bb83288

11
Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM node:latest AS build
ADD . /app
WORKDIR /app
RUN npm install && npm run build
FROM nginx:stable
COPY --from=build /app/dist /usr/share/nginx/html
ADD nginx-site.conf /etc/nginx/conf.d/default.conf