2019-07-26 17:59:22 +02:00
|
|
|
# Builder
|
2020-08-25 17:19:02 +02:00
|
|
|
FROM node:current as builder
|
2019-07-26 17:59:22 +02:00
|
|
|
|
|
|
|
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
|