15 lines
266 B
Docker
15 lines
266 B
Docker
FROM node:15.4.0 as build
|
|
|
|
WORKDIR /app
|
|
|
|
COPY . .
|
|
|
|
RUN yarn install
|
|
RUN yarn build
|
|
|
|
FROM nginx:mainline-alpine
|
|
|
|
COPY --from=build /app/public /var/www
|
|
COPY --from=build /app/build /var/www
|
|
COPY ./config/nginx.conf.template /etc/nginx/templates/default.conf.template
|