Spaces:
Running on Zero
Running on Zero
Download Dockerfile from ibsocr1/IcecreamDetect: direct link, hf CLI and curl.
- Browser
- Download file 464 Bytes
-
https://huggingface.co/spaces/ibsocr1/IcecreamDetect/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ibsocr1/IcecreamDetect/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ibsocr1/IcecreamDetect/resolve/main/Dockerfile
464 Bytes
| FROM python:3.11-slim | |
| ENV PYTHONUNBUFFERED=1 | |
| ENV PIP_NO_CACHE_DIR=1 | |
| ENV GRADIO_SERVER_PORT=7860 | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| libglib2.0-0 libgl1 libgomp1 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN pip install --upgrade pip && pip install -r requirements.txt | |
| COPY app.py . | |
| COPY training ./training | |
| RUN mkdir -p data/images data/generated model | |
| EXPOSE 7860 | |
| CMD ["python", "app.py"] | |