Spaces:
Paused
Paused
Download Dockerfile from shegy/m: direct link, hf CLI and curl.
- Browser
- Download file 534 Bytes
-
https://huggingface.co/spaces/shegy/m/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/shegy/m/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/shegy/m/resolve/main/Dockerfile
534 Bytes
| FROM ubuntu:22.04 | |
| ENV TZ=Asia/Shanghai | |
| RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \ | |
| echo $TZ > /etc/timezone | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| RUN apt-get update && \ | |
| apt-get install -y git python3 python3-pip tzdata dpkg curl p7zip-full&& \ | |
| rm -rf /var/lib/apt/lists/* | |
| WORKDIR /zmal | |
| RUN git clone https://github.com/kmizmal/sleepy.git | |
| WORKDIR /zmal/sleepy | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| RUN chmod -R 777 /zmal/sleepy | |
| EXPOSE 7860 | |
| COPY config.example.jsonc config.jsonc | |
| CMD python3 server.py |