sleepy / Dockerfile
LukeZ-WIN's picture
Update Dockerfile
524d5ca verified
Raw
History Blame Contribute Delete
514 Bytes
FROM ubuntu:22.04
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime
RUN echo $TZ >/etc/timezone
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get install -y git python3 python3-pip tzdata curl
RUN rm -rf /var/lib/apt/lists/*
WORKDIR /wyf9
RUN git clone --depth 1 https://github.com/NT-AUTHORITY/sleepy.git sleepy
WORKDIR /wyf9/sleepy
RUN pip install --no-cache-dir -r requirements.txt
RUN chmod -R 777 /wyf9/sleepy
EXPOSE 9010
COPY . /wyf9/sleepy
CMD python3 server.py