Spaces:
Sleeping
Sleeping
Download Dockerfile from Ezhil24/World-population-FastAPI: direct link, hf CLI and curl.
- Browser
- Download file 474 Bytes
-
https://huggingface.co/spaces/Ezhil24/World-population-FastAPI/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Ezhil24/World-population-FastAPI/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Ezhil24/World-population-FastAPI/resolve/main/Dockerfile
474 Bytes
| FROM python:3.11 | |
| # Set the working directory inside the container | |
| WORKDIR /app | |
| # Copy all project files into the container | |
| COPY . /app | |
| # Install dependencies | |
| RUN pip install --upgrade pip | |
| RUN mkdir -p /app/logs && chmod -R 777 /app/logs | |
| # Install any needed packages specified in requirements.txt | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| EXPOSE 7860 | |
| # Run FastAPI and Streamlit in parallel | |
| CMD ["uvicorn" ,"main:app","--host" ,"0.0.0.0", "--port", "7860"] | |