opencode-swarm-plugin 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,23 @@
1
+ FROM python:3.11-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # Install dependencies
6
+ COPY requirements.txt .
7
+ RUN pip install --no-cache-dir -r requirements.txt
8
+
9
+ # Copy server code
10
+ COPY server.py .
11
+
12
+ # Create data directory for SQLite
13
+ RUN mkdir -p /data
14
+
15
+ # Expose port
16
+ EXPOSE 8765
17
+
18
+ # Health check
19
+ HEALTHCHECK --interval=10s --timeout=3s --start-period=5s --retries=3 \
20
+ CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:8765/health/liveness')" || exit 1
21
+
22
+ # Run server
23
+ CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "8765"]
@@ -0,0 +1,3 @@
1
+ fastapi>=0.109.0
2
+ uvicorn[standard]>=0.27.0
3
+ pydantic>=2.5.0