chad/client/Dockerfile
Никита Круглицкий ea3f9f2876
All checks were successful
Deploy / server (push) Successful in 18s
Deploy / client (push) Successful in 28s
#3 update
2025-10-01 21:58:05 +06:00

20 lines
319 B
Docker

FROM node:lts-alpine AS builder
WORKDIR /app
RUN corepack enable
RUN yarn set version stable
COPY package.json yarn.lock .yarnrc.yml ./
RUN yarn install
COPY . .
RUN yarn generate
FROM nginx:stable-alpine
COPY --from=builder /app/.output/public /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]