Commit 3c0a9404 authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

tweaks

parent 66cc13a3
...@@ -27,6 +27,7 @@ RUN --mount=type=cache,id=apt,target=/var/cache/apt \ ...@@ -27,6 +27,7 @@ RUN --mount=type=cache,id=apt,target=/var/cache/apt \
USER csst USER csst
# copy VCS roots into image # copy VCS roots into image
COPY --chown=csst:csst . /pipeline COPY --chown=csst:csst . /pipeline
RUN mv pkg/csst-dag/csst_dag/cli /pipeline/app && rm /pipeline/app/__init__.py
# install packages & requirements # install packages & requirements
RUN --mount=type=cache,id=pip,uid=9000,gid=9000,target=/home/csst/.cache \ RUN --mount=type=cache,id=pip,uid=9000,gid=9000,target=/home/csst/.cache \
pip install pkg/ccds \ pip install pkg/ccds \
...@@ -35,8 +36,7 @@ RUN --mount=type=cache,id=pip,uid=9000,gid=9000,target=/home/csst/.cache \ ...@@ -35,8 +36,7 @@ RUN --mount=type=cache,id=pip,uid=9000,gid=9000,target=/home/csst/.cache \
&& pip install pkg/csst_dadel \ && pip install pkg/csst_dadel \
&& pip install pkg/csst-dag \ && pip install pkg/csst-dag \
&& pip install -r pkg/csst-dag/requirements.txt \ && pip install -r pkg/csst-dag/requirements.txt \
&& mv pkg/csst-dag/csst_dag/cli /pipeline/app \ && rm -rf pkg
&& rm -rf pkg /pipeline/app/__init__.py /pipeline/app/__pychache__
# change workdir # change workdir
WORKDIR /pipeline/output WORKDIR /pipeline/output
......
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