Skip to content

Commit 8ecff50

Browse files
committed
feat(docker): make sure CMS runs in PID 1
1 parent 0edcea1 commit 8ecff50

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ RUN pip install --no-cache-dir uv==0.7.20 && \
4242
WORKDIR /app
4343
EXPOSE 8000
4444
USER cms:cms
45-
CMD ["bash", "-c", "source /.venv/bin/activate && ./entrypoint.sh"]
45+
CMD ["bash", "-c", "./entrypoint.sh"]

docker/entrypoint/serve.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ else
2828
streamable=""
2929
fi
3030

31-
python cli/cli.py serve \
31+
source /.venv/bin/activate
32+
33+
exec /.venv/bin/python cli/cli.py serve \
3234
--model-type "${CMS_MODEL_TYPE}" \
3335
--model-name "${CMS_MODEL_NAME}" \
3436
--model-path "${CMS_MODEL_FILE}" \

0 commit comments

Comments
 (0)