dryymatt commited on
Commit
8d5aec3
·
verified ·
1 Parent(s): 9d7a437

STABLE VIBE: Dockerfile — port 8765, 0.0.0.0, relative paths

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -2
Dockerfile CHANGED
@@ -2,18 +2,23 @@ FROM python:3.12-slim
2
 
3
  WORKDIR /app
4
 
5
- RUN pip install --no-cache-dir aiohttp
6
 
7
  COPY core.py .
 
 
8
  COPY hot_reload.py .
9
  COPY sandbox.sh .
10
  COPY static/ static/
 
11
 
12
  RUN chmod +x sandbox.sh
13
 
 
14
  EXPOSE 8765
15
 
16
  HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
17
  CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:8765/api/health')" || exit 1
18
 
19
- CMD ["python", "core.py"]
 
 
2
 
3
  WORKDIR /app
4
 
5
+ RUN pip install --no-cache-dir aiohttp huggingface_hub
6
 
7
  COPY core.py .
8
+ COPY server.py .
9
+ COPY ghost_deploy.py .
10
  COPY hot_reload.py .
11
  COPY sandbox.sh .
12
  COPY static/ static/
13
+ COPY generated/ generated/
14
 
15
  RUN chmod +x sandbox.sh
16
 
17
+ # ─── STABLE VIBE: exposed port 8765 ───
18
  EXPOSE 8765
19
 
20
  HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
21
  CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:8765/api/health')" || exit 1
22
 
23
+ # ─── Entrypoint: aiohttp server on 0.0.0.0:8765 ───
24
+ CMD ["python", "server.py"]