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"]