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.
22 lines
359 B
22 lines
359 B
FROM node:10-slim AS builder |
|
|
|
WORKDIR / |
|
|
|
ADD yarn.lock / |
|
ADD package.json / |
|
ADD scripts /scripts |
|
|
|
RUN yarn install |
|
|
|
ADD config /config |
|
ADD public /public |
|
ADD src /src |
|
|
|
RUN yarn build |
|
|
|
FROM nginx:1.14-alpine |
|
|
|
# move this file, as /etc/nginx/ will be masked by a volume |
|
RUN cp /etc/nginx/mime.types /mime.types |
|
|
|
COPY --from=builder /build /usr/share/nginx/html
|
|
|