Spaces:
BG5
/
Sleeping

ssh / Dockerfile
BG5's picture
Update Dockerfile
49e6580 verified
raw
history blame
825 Bytes
FROM ubuntu
# 设置环境变量,避免交互式配置
ARG DEBIAN_FRONTEND=noninteractive
# 设置时区为亚洲/上海
ENV TZ=Asia/Shanghai
# 设置工作目录为/app
WORKDIR /code
COPY . .
# 安装所需的软件包并清理APT缓存
RUN apt-get update && apt-get install -y \
wget \
python-is-python3 \
pip \
tar \
unzip \
zip \
curl \
git \
sudo \
gosu \
gnupg \
util-linux \
sqlite3 \
tzdata
# RUN apt-get install libgtk-3-0
# RUN apt install ./todesk-v4.7.2.0-amd64.deb
# RUN apt-get install -f
EXPOSE 7860
RUN pip install --no-cache-dir --upgrade --break-system-packages -r requirements.txt
RUN echo 'root:12345' | chpasswd
RUN chmod +x alist
RUN mkdir -p /data
RUN chmod 777 /data
# RUN ./alist server
CMD ["sh", "-c", "./alist server & python app.py"]