chore: update Docker config and Guanghan mission timeline
- Docker: update config for topology API deployment - Timeline: complete GHC-06 EVA log through EVA-14 Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
+6
-5
@@ -1,15 +1,16 @@
|
||||
FROM python:3.12-slim
|
||||
FROM docker.m.daocloud.io/library/python:3.12-slim-bookworm
|
||||
|
||||
ENV PYTHONDONTWRITEBYTECODE=1 \
|
||||
PYTHONUNBUFFERED=1
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY requirements.txt ./
|
||||
COPY topology_api/requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY . .
|
||||
COPY topology_api/ topology_api/
|
||||
COPY data/wiki/guanghan_topology_demo.html data/wiki/
|
||||
|
||||
EXPOSE 8000
|
||||
EXPOSE 8080
|
||||
|
||||
CMD ["gunicorn", "--bind", "0.0.0.0:8000", "main:app"]
|
||||
CMD ["gunicorn", "--bind", "0.0.0.0:8080", "--workers", "2", "--timeout", "30", "topology_api.app:create_app()"]
|
||||
|
||||
Reference in New Issue
Block a user