Align runtime with platform demo strategy
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user