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
299 B
18 lines
299 B
![]()
4 years ago
|
FROM node:10-slim AS builder
|
||
|
|
||
|
WORKDIR /
|
||
|
|
||
|
ADD yarn.lock /
|
||
|
ADD package.json /
|
||
|
ADD src /src
|
||
|
ADD scripts /scripts
|
||
|
ADD public /public
|
||
|
ADD config /config
|
||
|
|
||
|
RUN yarn install
|
||
|
RUN yarn build
|
||
|
|
||
|
FROM nginx:1.14-alpine
|
||
|
COPY --from=builder /build /usr/share/nginx/html
|
||
|
COPY config/nginx.conf /etc/nginx/nginx.conf
|