Spaces:
Sleeping
Sleeping
Download Dockerfile from Pushpak21/DCM_Viewer: direct link, hf CLI and curl.
- Browser
- Download file 410 Bytes
-
https://huggingface.co/spaces/Pushpak21/DCM_Viewer/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Pushpak21/DCM_Viewer/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Pushpak21/DCM_Viewer/resolve/main/Dockerfile
410 Bytes
| # Dockerfile | |
| FROM python:3.11 | |
| # Install backend dependencies | |
| COPY requirements.txt /app/requirements.txt | |
| WORKDIR /app | |
| RUN pip install -r requirements.txt | |
| # Copy backend and frontend | |
| COPY app.py /app/app.py | |
| COPY index.html /app/index.html | |
| # Add CORS and serve index.html statically | |
| RUN mkdir -p /app/static | |
| # Run both backend (FastAPI) and static file server | |
| CMD uvicorn app:app --host 0.0.0.0 --port 7860 | |