| 12345678910111213141516 |
- # ---- Dependencies ----
- FROM node:16-alpine AS dependencies
- WORKDIR /app
- COPY package.json ./
- RUN yarn install
- # ---- Build ----
- FROM dependencies AS build
- WORKDIR /app
- COPY . /app
- RUN yarn build
- FROM nginx:1.23-alpine
- COPY --from=build /app/dist /usr/share/nginx/html
- EXPOSE 80
- CMD [ "nginx", "-g", "daemon off;" ]
|