Spaces:
Running
Running
File size: 442 Bytes
f142cae 2187ad4 f142cae 2187ad4 f142cae 2187ad4 f142cae 2187ad4 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | # Build Stage: Build the Vite frontend
FROM node:22-slim AS build
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
# Runtime Stage: serve the validated, versioned static artifacts
FROM python:3.9-slim
WORKDIR /app
# Copy the built frontend from build stage
COPY --from=build /app/dist ./dist
# Expose port 7860 (Hugging Face default)
EXPOSE 7860
CMD ["python3", "-m", "http.server", "7860", "--directory", "dist"]
|