Spaces:
Sleeping
Sleeping
Download Dockerfile from Addyk24/Project-Polymath: direct link, hf CLI and curl.
- Browser
- Download file 375 Bytes
-
https://huggingface.co/spaces/Addyk24/Project-Polymath/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Addyk24/Project-Polymath/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Addyk24/Project-Polymath/resolve/main/Dockerfile
375 Bytes
| FROM public.ecr.aws/docker/library/python:3.11-slim | |
| RUN useradd -m -u 1000 user | |
| WORKDIR /app | |
| COPY --chown=user:user requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY --chown=user:user . . | |
| USER user | |
| ENV PYTHONUNBUFFERED=1 \ | |
| PYTHONDONTWRITEBYTECODE=1 \ | |
| PYTHONPATH=/app \ | |
| HOME=/home/user | |
| EXPOSE 7860 | |
| CMD ["python", "server/app.py"] |