chad/client/Dockerfile
Никита Круглицкий 514849a3bb
Some checks failed
Deploy / server (push) Successful in 18s
Deploy / client (push) Failing after 53s
#3 update
2025-10-01 21:37:25 +06:00

20 lines
294 B
Docker

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