mirror of
https://github.com/openswarm-ai/openswarm.git
synced 2026-09-05 17:27:42 +02:00
[eric] runner: per-app VM image boots a published bundle from storage and serves backend + frontend from one process (ENG-293)
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
FROM python:3.12-slim
|
||||
WORKDIR /srv/runner
|
||||
# The webapp template's dependency set, preinstalled so most apps boot without a pip step.
|
||||
RUN pip install --no-cache-dir "fastapi[standard]" "pydantic>=2.9.0" httpx uvicorn "typeguard==4.4.2" boto3
|
||||
COPY boot.py serve.py fallback.py swarm_debug.py ./
|
||||
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1 PYTHONPATH=/srv/runner
|
||||
EXPOSE 8080
|
||||
CMD ["python", "boot.py"]
|
||||
Reference in New Issue
Block a user