MB-IDK commited on
Commit
abcf292
·
verified ·
1 Parent(s): c69ec46

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -7
Dockerfile CHANGED
@@ -1,15 +1,18 @@
1
  FROM python:3.11-slim
2
 
3
- # Installer dépendances
4
- RUN pip install --no-cache-dir rotating-mitmproxy requests
5
 
6
  WORKDIR /app
7
 
8
- # Copier le script
9
- COPY server.py /app/server.py
10
 
11
- # Exposer le port proxy
 
 
 
 
 
12
  EXPOSE 3129
13
 
14
- # Commande de démarrage
15
- CMD ["python", "/app/server.py"]
 
1
  FROM python:3.11-slim
2
 
3
+ ENV PYTHONUNBUFFERED=1
4
+ ENV PORT=7860
5
 
6
  WORKDIR /app
7
 
8
+ RUN pip install --no-cache-dir rotating-mitmproxy flask requests
 
9
 
10
+ COPY start.sh /app/start.sh
11
+ COPY health.py /app/health.py
12
+
13
+ RUN chmod +x /app/start.sh
14
+
15
+ EXPOSE 7860
16
  EXPOSE 3129
17
 
18
+ CMD ["/app/start.sh"]