File size: 281 Bytes
8b07c11
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM docker:27-dind

RUN apk add --no-cache python3 py3-pip

WORKDIR /app

COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

COPY server.py .

ENV DOCKER_TLS_CERTDIR=""

EXPOSE 7860

CMD ["sh", "-c", "dockerd-entrypoint.sh & sleep 3 && python3 server.py"]