Commit e4476178 authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

use csst as entrypoint

parent 3f78c24f
......@@ -28,7 +28,10 @@ USER csst
# copy VCS roots into image
COPY --chown=csst:csst . /pipeline
RUN mv pkg/csst-dag/app /pipeline/app \
&& chmod +x /pipeline/app/csst
&& chmod +x /pipeline/app/csst \
# add csst to PATH
ENV PATH="/pipeline/app:${PATH}"
# install packages & requirements
RUN --mount=type=cache,id=pip,uid=9000,gid=9000,target=/home/csst/.cache \
pip install pkg/ccds \
......@@ -44,4 +47,4 @@ RUN touch /pipeline/output/pipeline.log
# 设置容器启动时默认执行的命令(这里以提供一个帮助信息为例)
# 实际使用时,你可能会通过docker run覆盖这个命令来调用具体的工具
CMD ["python", "-c", "import csst_dag; print('csst_dag is available. Use docker run <image> <command> to execute specific functions.')"]
CMD ["csst", "--help"]
......@@ -8,4 +8,4 @@ services:
env_file:
- .env
command: > # change it as necessary
python /pipeline/app/test.py
csst --help
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment