JSWAI commited on
Commit
8b07c11
·
verified ·
1 Parent(s): 82828b7

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -0
Dockerfile ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM docker:27-dind
2
+
3
+ RUN apk add --no-cache python3 py3-pip
4
+
5
+ WORKDIR /app
6
+
7
+ COPY requirements.txt .
8
+ RUN pip install --no-cache-dir -r requirements.txt
9
+
10
+ COPY server.py .
11
+
12
+ ENV DOCKER_TLS_CERTDIR=""
13
+
14
+ EXPOSE 7860
15
+
16
+ CMD ["sh", "-c", "dockerd-entrypoint.sh & sleep 3 && python3 server.py"]