Spaces:
Running
Running
Download Dockerfile from pachet/continuator_front: direct link, hf CLI and curl.
- Browser
- Download file 672 Bytes
-
https://huggingface.co/spaces/pachet/continuator_front/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/pachet/continuator_front/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/pachet/continuator_front/resolve/main/Dockerfile
672 Bytes
| FROM python:3.12-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 \ | |
| PYTHONUNBUFFERED=1 \ | |
| PIP_NO_CACHE_DIR=1 \ | |
| HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| RUN apt-get update \ | |
| && apt-get install -y --no-install-recommends git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| WORKDIR $HOME/app | |
| COPY --chown=user backend/requirements.txt backend/requirements.txt | |
| RUN pip install --upgrade pip && pip install -r backend/requirements.txt | |
| COPY --chown=user backend backend | |
| COPY --chown=user frontend frontend | |
| EXPOSE 7860 | |
| CMD ["python", "-m", "uvicorn", "app.main:app", "--app-dir", "backend", "--host", "0.0.0.0", "--port", "7860"] | |