Spaces:
Sleeping
Sleeping
Download Dockerfile from makadev/humanizer-api: direct link, hf CLI and curl.
- Browser
- Download file 422 Bytes
-
https://huggingface.co/spaces/makadev/humanizer-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/makadev/humanizer-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/makadev/humanizer-api/resolve/main/Dockerfile
422 Bytes
| FROM python:3.9 | |
| # Set up a new user named "user" with user ID 1000 | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV PATH="/home/user/.local/bin:$PATH" | |
| WORKDIR /app | |
| COPY --chown=user ./requirements.txt requirements.txt | |
| RUN pip install --no-cache-dir --upgrade pip && \ | |
| pip install --no-cache-dir -r requirements.txt | |
| COPY --chown=user . . | |
| EXPOSE 7860 | |
| CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app", "--timeout", "120"] |