Download Dockerfile from chb2024/flux2api: direct link, hf CLI and curl.
- Browser
- Download file 370 Bytes
-
https://huggingface.co/spaces/chb2024/flux2api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/chb2024/flux2api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/chb2024/flux2api/resolve/main/Dockerfile
370 Bytes
| FROM python:3.9-slim | |
| RUN apt-get update && apt-get install -y --no-install-recommends tzdata && \ | |
| rm -rf /var/lib/apt/lists/* | |
| ENV TZ=Asia/Shanghai | |
| RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone | |
| WORKDIR /app | |
| RUN chmod 777 -R /app | |
| COPY app.py . | |
| RUN pip install --no-cache-dir flask requests | |
| EXPOSE 8000 | |
| CMD ["python", "app.py"] |