You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
261 B
18 lines
261 B
5 years ago
|
# 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
|