Files
tmc-test-task/frontend/Dockerfile
Oscar 70f692b7d8
Some checks failed
Deploy Backend / deploy (push) Successful in 22s
Deploy Frontend / deploy (push) Has been cancelled
upd
2026-06-04 15:30:24 +03:00

22 lines
463 B
Docker

FROM node:lts-alpine AS builder
WORKDIR /app
RUN corepack enable && corepack prepare pnpm@latest --activate
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
RUN pnpm install --frozen-lockfile --ignore-scripts
COPY . .
ARG API_BASE=https://api.koptinlya.xyz/test-1/
ENV API_BASE=$API_BASE
RUN pnpm exec nuxt generate
FROM nginx:stable-alpine
COPY --from=builder /app/.output/public /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]