Spaces:
Running
Running
Download Dockerfile from 0xarchit/colorization: direct link, hf CLI and curl.
- Browser
- Download file 854 Bytes
-
https://huggingface.co/spaces/0xarchit/colorization/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/0xarchit/colorization/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/0xarchit/colorization/resolve/main/Dockerfile
854 Bytes
| FROM python:3.11-slim-bookworm | |
| ENV PYTHONUNBUFFERED=1 \ | |
| PYTHONDONTWRITEBYTECODE=1 \ | |
| PIP_NO_CACHE_DIR=1 \ | |
| GRADIO_ANALYTICS_ENABLED=False \ | |
| HOME=/home/user \ | |
| HF_HOME=/home/user/.cache/huggingface \ | |
| GRADIO_TEMP_DIR=/tmp/gradio \ | |
| OMP_NUM_THREADS=4 \ | |
| MKL_NUM_THREADS=4 | |
| RUN apt-get update \ | |
| && apt-get install -y --no-install-recommends libgomp1 \ | |
| && rm -rf /var/lib/apt/lists/* \ | |
| && useradd --create-home --uid 1000 user | |
| WORKDIR /home/user/app | |
| COPY requirements.txt . | |
| RUN pip install torch==2.12.0 torchvision==0.27.0 --index-url https://download.pytorch.org/whl/cpu \ | |
| && pip install -r requirements.txt | |
| COPY --chown=user:user app.py model.py README.md LICENSE NOTICE ./ | |
| COPY --chown=user:user weights/ ./weights/ | |
| COPY --chown=user:user examples/ ./examples/ | |
| USER user | |
| EXPOSE 7860 | |
| CMD ["python", "app.py"] | |