thecr3w-dev/infrastructure/docker/Dockerfile.download-center

26 lines
812 B
Text

# ==============================================================================
# TheCr3w Download Center — Dockerfile (React + Vite -> Nginx Alpine)
# ==============================================================================
FROM node:22-alpine AS build
WORKDIR /app
COPY frontend/download-center/package.json ./
RUN npm install
COPY frontend/download-center/ ./
RUN npm run build
# ------------------------------------------------------------------------------
# Production Nginx Runtime
# ------------------------------------------------------------------------------
FROM nginx:alpine AS runtime
COPY --from=build /app/dist /usr/share/nginx/html
EXPOSE 80
HEALTHCHECK --interval=10s --timeout=3s --retries=3 \
CMD wget -qO- http://localhost:80/ || exit 1
CMD ["nginx", "-g", "daemon off;"]