Download Dockerfile from build-small-hackathon/memory-keeper: direct link, hf CLI and curl.
- Browser
- Download file 438 Bytes
-
https://huggingface.co/spaces/build-small-hackathon/memory-keeper/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/build-small-hackathon/memory-keeper/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/build-small-hackathon/memory-keeper/resolve/main/Dockerfile
438 Bytes
| FROM python:3.12-slim | |
| WORKDIR /code | |
| COPY ./requirements.txt /code/requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| COPY . . | |
| # Set up a non-root user for security (required by HF Spaces) | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| WORKDIR $HOME/app | |
| COPY --chown=user . $HOME/app | |
| # Start the Gradio Server app on port 7860 | |
| CMD ["python", "app.py"] | |