23 lines
415 B
Docker
23 lines
415 B
Docker
FROM node:24-alpine AS builder
|
|
|
|
WORKDIR /src
|
|
|
|
RUN corepack enable
|
|
|
|
COPY package.json pnpm-lock.yaml ./
|
|
RUN pnpm install --frozen-lockfile
|
|
|
|
COPY . .
|
|
|
|
ARG VITE_API_BASE_URL=https://api-acc.global-interaction.com/api
|
|
ENV VITE_API_BASE_URL=${VITE_API_BASE_URL}
|
|
|
|
RUN pnpm build
|
|
|
|
FROM nginx:1.27-alpine
|
|
|
|
COPY deploy/nginx.conf /etc/nginx/conf.d/default.conf
|
|
COPY --from=builder /src/dist /usr/share/nginx/html
|
|
|
|
EXPOSE 80
|