playingapi commited on
Commit
8fdef10
·
verified ·
1 Parent(s): 2f3cb13

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +24 -0
Dockerfile ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ # 安装 git 和 ca-certificates
4
+ RUN apt-get update && \
5
+ apt-get install -y --no-install-recommends git ca-certificates && \
6
+ apt-get clean && \
7
+ rm -rf /var/lib/apt/lists/*
8
+
9
+ WORKDIR /app
10
+
11
+ ARG REPO_URL=https://github.com/oDaiSuno/retool2API.git
12
+ RUN git clone ${REPO_URL} .
13
+
14
+ COPY requirements.txt .
15
+ RUN pip install --no-cache-dir -r requirements.txt
16
+
17
+ COPY main.py .
18
+ COPY retool.json .
19
+ COPY client_api_keys.json .
20
+
21
+
22
+ EXPOSE 8000
23
+
24
+ CMD ["python", "main.py"]