dryymatt commited on
Commit
90b71e8
·
verified ·
1 Parent(s): 87a3c16

🧙‍♂️ Wizard-Vibe Studio: Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -0
Dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 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"]