Spaces:
Sleeping
Sleeping
| FROM node:18-slim AS frontend-build | |
| WORKDIR /app/frontend | |
| COPY frontend/package*.json ./ | |
| RUN npm install --silent | |
| COPY frontend/ ./ | |
| RUN npx vite build --outDir ../backend/static | |
| FROM python:3.11-slim | |
| WORKDIR /app | |
| COPY backend/requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY backend/ ./ | |
| COPY --from=frontend-build /app/backend/static ./static | |
| EXPOSE 8000 | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"] | |