2023-02-09 19:02:20 +00:00
|
|
|
FROM node:16 as build
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package*.json yarn.lock .
|
2023-02-10 15:18:32 +00:00
|
|
|
RUN yarn install --network-timeout 1000000
|
2023-02-09 19:02:20 +00:00
|
|
|
COPY . .
|
|
|
|
RUN yarn build
|
|
|
|
|
2023-02-12 19:10:10 +00:00
|
|
|
FROM nginx:mainline-alpine
|
|
|
|
COPY docker/nginx.conf /etc/nginx/conf.d/default.conf
|
2023-02-09 19:02:20 +00:00
|
|
|
COPY --from=build /app/build /usr/share/nginx/html
|