File tree Expand file tree Collapse file tree
assets/training/model_management/environments/foundation-model-serve/context Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,18 +47,17 @@ COPY . .
4747RUN python3.12 -m pip install -e ./ --no-cache-dir && \
4848 rm -rf ~/.cache/pip
4949
50- # Install our api_server service under /etc/service (empty in the base image).
51- # IMPORTANT: do NOT use /var/runit here — the MCR base ships gunicorn/nginx/rsyslog
52- # services there for its built-in scoring stack; we want only our api_server supervised.
53- ADD runit_folder/api_server /etc/service /api_server
54- RUN sed -i 's/\r $//g' /etc/service /api_server/run && \
55- chmod +x /etc/service /api_server/run
56-
57- ENV SVDIR=/etc/service \
50+ # The MCR base ships its AzureML scoring services (gunicorn/nginx/rsyslog)
51+ # under /var/runit; remove them so only our api_server is supervised.
52+ RUN rm -rf /var/runit/gunicorn /var/runit/nginx /var/runit/rsyslog
53+ ADD runit_folder/api_server /var/runit /api_server
54+ RUN sed -i 's/\r $//g' /var/runit /api_server/run && \
55+ chmod +x /var/runit /api_server/run
56+
57+ ENV SVDIR=/var/runit \
5858 WORKER_TIMEOUT=3600
5959
60- # install runit as the CMD below depends on `runsvdir`).
6160RUN command -v runsvdir >/dev/null || { echo 'runsvdir missing in base image' ; exit 1; }
6261
6362EXPOSE 5001
64- CMD ["runsvdir" , "/etc/service " ]
63+ CMD ["runsvdir" , "/var/runit " ]
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ azure-ai-contentsafety==1.0.0b1
22azure-ai-ml == 1.13.0
33azureml-mlflow == 1.60.0
44azure-identity == 1.23.0
5- fastapi == 0.120.4
5+ fastapi == 0.136.3
66pandas == 2.2.3
77transformers == 5.0.0
88uvicorn == 0.38.0
You can’t perform that action at this time.
0 commit comments