chad/client/Dockerfile
Никита Круглицкий d2b52c476a
All checks were successful
Deploy / deploy (push) Successful in 26s
#3 update
2025-10-01 23:59:59 +06:00

24 lines
376 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 . .
ARG COMMIT_SHA=unknown
ENV VITE_COMMIT_SHA=$COMMIT_SHA
RUN yarn generate
FROM nginx:stable-alpine
COPY --from=builder /app/.output/public /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]