sleepy / Dockerfile
wyf9's picture
update github username: wyf9 -> sleepy-project
3b35717 unverified
raw
history blame contribute delete
556 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 /sleepy-project
RUN git clone --depth 1 https://github.com/sleepy-project/sleepy.git sleepy
WORKDIR /sleepy-project/sleepy
RUN pip install --no-cache-dir -r requirements.txt
RUN chmod -R 777 /sleepy-project/sleepy
EXPOSE 9010
COPY . /sleepy-project/sleepy
CMD python3 server.py