Download Dockerfile from poolside-laguna-hackathon/poor-mans-interaction-models: direct link, hf CLI and curl.
- Browser
- Download file 403 Bytes
-
https://huggingface.co/spaces/poolside-laguna-hackathon/poor-mans-interaction-models/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/poolside-laguna-hackathon/poor-mans-interaction-models/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/poolside-laguna-hackathon/poor-mans-interaction-models/resolve/main/Dockerfile
403 Bytes
| FROM python:3.12-slim | |
| RUN useradd -m -u 1000 user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH \ | |
| PYTHONDONTWRITEBYTECODE=1 \ | |
| PYTHONUNBUFFERED=1 \ | |
| PORT=7860 | |
| WORKDIR $HOME/app | |
| COPY --chown=user requirements.txt ./requirements.txt | |
| RUN pip install --no-cache-dir --user -r requirements.txt | |
| COPY --chown=user app ./app | |
| USER user | |
| EXPOSE 7860 | |
| CMD ["python", "-m", "app.main"] | |