Spaces:
Running
Running
Download Dockerfile from jorisvaneyghen/loop_maestro: direct link, hf CLI and curl.
- Browser
- Download file 438 Bytes
-
https://huggingface.co/spaces/jorisvaneyghen/loop_maestro/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/jorisvaneyghen/loop_maestro/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/jorisvaneyghen/loop_maestro/resolve/main/Dockerfile
438 Bytes
| # Use Python base image | |
| FROM python:3.10 | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV PATH="/home/user/.local/bin:$PATH" | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy current files into container | |
| COPY . /app | |
| COPY --chown=user ./requirements.txt requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
| # Expose default port | |
| EXPOSE 7860 | |
| # Run with Gunicorn | |
| CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "app:app"] |