Download Dockerfile from shegy/al: direct link, hf CLI and curl.
- Browser
- Download file 480 Bytes
-
https://huggingface.co/spaces/shegy/al/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/shegy/al/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/shegy/al/resolve/main/Dockerfile
480 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 git curl wget -y | |
| WORKDIR /alist | |
| RUN wget -q https://github.com/AlistGo/alist/releases/latest/download/alist-linux-386.tar.gz | |
| RUN tar -xzvf alist-linux-386.tar.gz | |
| COPY . . | |
| COPY config.json data/config.json | |
| RUN chmod -R 777 /alist | |
| EXPOSE 7860 | |
| RUN ls -a | |
| CMD /alist/alist admin random |