32909/Dockerfile
2025-07-20 04:17:09 +00:00

20 lines
433 B
Docker

FROM node:20.15.1-alpine AS builder
RUN apk add --no-cache git
WORKDIR /app
COPY frontend/package.json frontend/yarn.lock ./
RUN yarn install --pure-lockfile
COPY frontend .
RUN yarn build
RUN yarn export
FROM node:20.15.1-alpine
WORKDIR /app
COPY backend/package.json backend/yarn.lock ./
RUN yarn install --pure-lockfile
COPY --from=builder /app/out /app/public
COPY --from=builder /app/build /app/public
CMD ["yarn", "start"]