Add docker file & update readme

This commit is contained in:
2020-02-25 23:54:15 +01:00
parent 7547923b1f
commit 17b85fafd7
4 changed files with 11033 additions and 10972 deletions
+14
View File
@@ -0,0 +1,14 @@
# build environment
FROM node:latest as build
WORKDIR /app
COPY package.json /app/package.json
RUN yarn install
COPY . /app
RUN yarn build
# production environment
FROM nginx:latest
COPY --from=build /app/build /usr/share/nginx/html
COPY ./default.conf /etc/nginx/conf.d
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]