Download Dockerfile from asmaakbar/web-app: direct link, hf CLI and curl.
- Browser
- Download file 530 Bytes
-
https://huggingface.co/spaces/asmaakbar/web-app/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/asmaakbar/web-app/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/asmaakbar/web-app/resolve/main/Dockerfile
530 Bytes
| # Use an official Python runtime as the base image | |
| FROM python:3.11-slim | |
| # Set the working directory in the container | |
| WORKDIR /app | |
| # Copy the requirements file and install dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the application code to the container | |
| COPY . /app/ | |
| # Expose the port the application will run on | |
| EXPOSE 7860 | |
| # Define the command to run the application | |
| CMD ["uvicorn", "src.api.main:app", "--host", "0.0.0.0", "--port", "7860", "--forwarded-allow-ips", "*"] | |