File size: 511 Bytes
a416c22 e734e63 a416c22 80ba1b8 a416c22 a087ca5 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
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&& \
rm -rf /var/lib/apt/lists/*
WORKDIR /zmal
RUN git clone -b use --depth=1 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 . /zmal/sleepy
CMD python3 server.py |