Spaces:
Sleeping
Sleeping
Download Dockerfile from osel-dbcms/Justify: direct link, hf CLI and curl.
- Browser
- Download file 439 Bytes
-
https://huggingface.co/spaces/osel-dbcms/Justify/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/osel-dbcms/Justify/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/osel-dbcms/Justify/resolve/main/Dockerfile
439 Bytes
| # Use Python base image | |
| FROM python:3.12 | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy current files into container | |
| COPY . /app | |
| # Install Flask | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Build and install your local package (compiles Cython extension) | |
| #RUN pip install --no-cache-dir -e . # no longer needed | |
| # Expose default port | |
| EXPOSE 7860 | |
| # Run with Gunicorn | |
| CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "main:app"] | |