Download Dockerfile from visproj/lantern: direct link, hf CLI and curl.
- Browser
- Download file 701 Bytes
-
https://huggingface.co/spaces/visproj/lantern/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/visproj/lantern/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/visproj/lantern/resolve/main/Dockerfile
701 Bytes
| FROM python:3.11-slim | |
| # minihack's setup.py calls `git` to stamp its version. | |
| RUN apt-get update && apt-get install -y --no-install-recommends git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Spaces run containers as uid 1000. | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH \ | |
| PYTHONUNBUFFERED=1 \ | |
| LANTERN_DATA=/home/user/app/data | |
| WORKDIR /home/user/app | |
| COPY --chown=user requirements.txt . | |
| RUN pip install --no-cache-dir --user -r requirements.txt | |
| COPY --chown=user lantern ./lantern | |
| COPY --chown=user web ./web | |
| COPY --chown=user app.py . | |
| RUN mkdir -p data/episodes | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |