Add Dockerfile

Change-Id: I6f60fae65f03740f26d94d9a3cc2fa2402511ca9
This commit is contained in:
Manuel Stahl 2019-07-26 17:59:22 +02:00
parent 1e6d43e291
commit 07e7ed98b5
2 changed files with 28 additions and 0 deletions

17
Dockerfile Normal file
View file

@ -0,0 +1,17 @@
# Builder
FROM node:10-alpine as builder
WORKDIR /src
COPY . /src
RUN yarn --network-timeout=100000 install
RUN yarn build
# App
FROM nginx:alpine
COPY --from=builder /src/build /app
RUN rm -rf /usr/share/nginx/html \
&& ln -s /app /usr/share/nginx/html