File size: 556 Bytes
2698994
 
 
 
 
 
 
 
 
 
 
3b35717
 
2698994
3b35717
2698994
3b35717
2698994
 
 
3b35717
2698994
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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