Spaces:
Running
Running
Create Dockerfile
Browse files- Dockerfile +16 -0
Dockerfile
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM ubuntu:22.04
|
2 |
+
ENV TZ=Asia/Shanghai
|
3 |
+
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \
|
4 |
+
echo $TZ > /etc/timezone
|
5 |
+
ENV DEBIAN_FRONTEND=noninteractive
|
6 |
+
RUN apt-get update && \
|
7 |
+
apt-get install -y git python3 python3-pip tzdata curl && \
|
8 |
+
rm -rf /var/lib/apt/lists/*
|
9 |
+
WORKDIR /zmal
|
10 |
+
RUN git clone https://github.com/kmizmal/sleepy.git
|
11 |
+
WORKDIR /zmal/sleepy
|
12 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
13 |
+
RUN chmod -R 777 /zmal/sleepy
|
14 |
+
EXPOSE 7860
|
15 |
+
COPY . /zmal/sleepy
|
16 |
+
CMD python3 server.py
|