Spaces:
Running
Running
Download Dockerfile from PediaMedAI/MedCaseAgent: direct link, hf CLI and curl.
- Browser
- Download file 660 Bytes
-
https://huggingface.co/spaces/PediaMedAI/MedCaseAgent/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/PediaMedAI/MedCaseAgent/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/PediaMedAI/MedCaseAgent/resolve/main/Dockerfile
660 Bytes
| FROM node:22-bookworm-slim AS frontend | |
| WORKDIR /build | |
| COPY frontend/package.json frontend/package-lock.json ./ | |
| RUN npm ci --include=dev | |
| COPY frontend/ ./ | |
| RUN npm run build | |
| FROM python:3.12-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1 | |
| RUN useradd --create-home --uid 1000 appuser | |
| WORKDIR /app | |
| COPY backend/requirements.txt ./backend/requirements.txt | |
| RUN pip install --no-cache-dir -r backend/requirements.txt | |
| COPY --chown=appuser backend/ ./backend/ | |
| COPY --chown=appuser --from=frontend /build/dist ./frontend/dist | |
| USER appuser | |
| EXPOSE 7860 | |
| CMD ["python", "-m", "uvicorn", "app.main:app", "--app-dir", "backend", "--host", "0.0.0.0", "--port", "7860"] | |