kingtest commited on
Commit
c81c458
1 Parent(s): 917499e

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -0
Dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9-slim
2
+
3
+ ENV PYTHONDONTWRITEBYTECODE 1
4
+ ENV PYTHONUNBUFFERED 1
5
+ ENV TZ=Asia/Shanghai
6
+
7
+ WORKDIR /app
8
+
9
+ # Install git
10
+ RUN apt-get update && apt-get install -y git
11
+
12
+ # Clone the repository
13
+ RUN git clone https://github.com/Chenyme/oaifree-tools.git /app && \
14
+ apk del git
15
+
16
+ # Install dependencies
17
+ RUN pip install --no-cache-dir -r requirements.txt
18
+
19
+ CMD ["streamlit", "run", "/app/home.py"]