Spaces:
Sleeping
Sleeping
Download Dockerfile from Salahin/random-api: direct link, hf CLI and curl.
- Browser
- Download file 502 Bytes
-
https://huggingface.co/spaces/Salahin/random-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Salahin/random-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Salahin/random-api/resolve/main/Dockerfile
502 Bytes
| # Use an official Python runtime as a parent image | |
| FROM python:3.9-slim | |
| # Set the working directory | |
| WORKDIR /code | |
| # Copy the requirements file | |
| COPY ./requirements.txt /code/requirements.txt | |
| # Install the dependencies | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| # Copy the application code | |
| COPY . . | |
| # Set the working directory to /code/app | |
| WORKDIR /code/app | |
| # Run the command to start the development server | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |