Skip to content

Commit

Permalink
update dockerfile with submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
mdupaysign committed Nov 13, 2024
1 parent 4a6304c commit c0d04fe
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ jobs:
uses: actions/checkout@v4
with:
submodules: recursive
#token: ${{ secrets.GHCR_TOKEN }}
token: ${{ secrets.GHCR_TOKEN }}
fetch-depth: 1
# See https://github.com/marketplace/actions/setup-micromamba
- name: Install conda env
uses: mamba-org/[email protected]
Expand Down
14 changes: 8 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,11 @@ USER root
WORKDIR /lidro


# Create directories
RUN mkdir tmp data
# # Create directories
RUN mkdir tmp

COPY . .

# Sync and update submodules (ensure they are configured in the repository)
RUN git submodule sync && \
git submodule update --init --recursive

RUN chown $MAMBA_USER:$MAMBA_USER environment.yml
RUN micromamba install -y -n base -f environment.yml && \
micromamba clean --all --yes
Expand All @@ -43,6 +39,12 @@ ENV ENV=base
ARG MAMBA_DOCKERFILE_ACTIVATE=1


# Sync and update submodules (ensure they are configured in the repository)
RUN git submodule sync && \
git submodule update --init --recursive

RUN mkdir tmp




0 comments on commit c0d04fe

Please sign in to comment.