Files
tmc-test-task/frontend/Dockerfile
Oscar a46f81a402
All checks were successful
Deploy Frontend / deploy (push) Successful in 38s
upd
2026-06-04 15:49:24 +03:00

22 lines
429 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
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;"]