Upload Dockerfile
Browse files- Dockerfile +5 -5
Dockerfile
CHANGED
|
@@ -14,11 +14,11 @@ COPY generated/ generated/
|
|
| 14 |
|
| 15 |
RUN chmod +x sandbox.sh
|
| 16 |
|
| 17 |
-
# βββ
|
| 18 |
-
EXPOSE
|
| 19 |
|
| 20 |
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
|
| 21 |
-
CMD python -c "import urllib.request; urllib.request.urlopen('http://
|
| 22 |
|
| 23 |
-
# βββ Entrypoint: aiohttp server on 0.0.0.0:
|
| 24 |
-
CMD ["python", "server.py"]
|
|
|
|
| 14 |
|
| 15 |
RUN chmod +x sandbox.sh
|
| 16 |
|
| 17 |
+
# βββ VISIBILITY OVERRIDE: exposed port 7860 βββ
|
| 18 |
+
EXPOSE 7860
|
| 19 |
|
| 20 |
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
|
| 21 |
+
CMD python -c "import urllib.request; urllib.request.urlopen('http://0.0.0.0:7860/api/health')" || exit 1
|
| 22 |
|
| 23 |
+
# βββ Entrypoint: aiohttp server on 0.0.0.0:7860 βββ
|
| 24 |
+
CMD ["python", "-u", "server.py"]
|