Align runtime with platform demo strategy

This commit is contained in:
Codex
2026-07-27 18:52:55 +08:00
parent dd21ca1be2
commit 3eb3175794
5 changed files with 43 additions and 44 deletions

View File

@@ -9,15 +9,12 @@ WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app.py modelhub_pipeline_resumable.py ./
RUN mkdir -p /app/pipeline_outputs \
&& chown -R 10001:0 /app
USER 10001
COPY . .
RUN mkdir -p /app/pipeline_outputs
EXPOSE 8080
HEALTHCHECK --interval=30s --timeout=3s --start-period=10s --retries=3 \
CMD python -c "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8080/health', timeout=2).read()"
CMD ["python", "app.py"]
CMD ["python", "main.py"]