rr1 commited on
Commit
f76e26a
·
verified ·
1 Parent(s): 734e436

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -0
Dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ RUN apt-get update && apt-get install -y git sed
4
+
5
+ RUN git clone https://github.com/oDaiSuno/retool2API.git /app
6
+
7
+ WORKDIR /app
8
+
9
+ RUN pip install --no-cache-dir -r requirements.txt
10
+
11
+ RUN --mount=type=secret,id=RETOOL_JSON,mode=0444,required=true \
12
+ cat /etc/secrets/RETOOL_JSON > retool.json && chmod 777 retool.json
13
+
14
+ RUN --mount=type=secret,id=API_KEY,mode=0444,required=true \
15
+ cat /etc/secrets/API_KEY > client_api_keys.json && chmod 777 client_api_keys.json
16
+
17
+ EXPOSE 8000
18
+
19
+ CMD ["python", "app.py"]