Spaces:
Sleeping
Sleeping
Download Dockerfile from gingdev/image_translator: direct link, hf CLI and curl.
- Browser
- Download file 383 Bytes
-
https://huggingface.co/spaces/gingdev/image_translator/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/gingdev/image_translator/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/gingdev/image_translator/resolve/main/Dockerfile
383 Bytes
| FROM python:3-bookworm | |
| RUN apt-get update && \ | |
| apt-get install -y libmagickwand-dev ghostscript fonts-freefont-ttf curl libgl1-mesa-glx | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV PATH="/home/user/.local/bin:$PATH" | |
| WORKDIR /app | |
| COPY --chown=user . /app | |
| RUN curl -LsSf https://astral.sh/uv/install.sh | sh && \ | |
| uv sync | |
| ENV PATH="/app/.venv/bin:$PATH" | |
| CMD ["python", "run.py"] | |