Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ RUN mkdir -p /app/model/model && \
chown -R $CMS_UID:$CMS_GID /app
RUN pip install --no-cache-dir uv==0.7.20 && \
uv sync --locked && \
chown -R $CMS_UID:$CMS_GID /.venv && \
chmod +x /app/entrypoint.sh

WORKDIR /app
EXPOSE 8000
USER cms:cms
CMD ["uv", "run", "/app/entrypoint.sh"]
CMD ["bash", "-c", "./entrypoint.sh"]
4 changes: 3 additions & 1 deletion docker/entrypoint/serve.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ else
streamable=""
fi

python cli/cli.py serve \
source /.venv/bin/activate

exec /.venv/bin/python cli/cli.py serve \
--model-type "${CMS_MODEL_TYPE}" \
--model-name "${CMS_MODEL_NAME}" \
--model-path "${CMS_MODEL_FILE}" \
Expand Down