Files
bruno e965e44e89
CI / Lint & Format (push) Failing after 1s
CI / Tests (push) Has been skipped
CI / Security Scan (push) Failing after 1s
CI / Docker Build (push) Has been skipped
Fix admin nginx: listen on port 80 instead of 3000 (match docker-compose port mapping)
2026-06-22 22:23:39 -04:00

17 lines
373 B
Docker

# Stage 1 : Build
FROM node:20-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
ARG VITE_API_BASE_URL=""
ARG VITE_APP_TITLE="Imago Hub Admin"
RUN npm run build
# Stage 2 : Serve
FROM nginx:alpine
COPY --from=builder /app/dist /usr/share/nginx/html
COPY nginx/default.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]