Skip to content

Commit

Permalink
Use sitepackages var
Browse files Browse the repository at this point in the history
  • Loading branch information
jennyfothergill committed Apr 25, 2024
1 parent 753c513 commit 06324bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jukes-micromamba/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ USER $MAMBA_USER
RUN micromamba create -n cautorift -c conda-forge python autorift=1.1.0 \
notebook matplotlib pandas opencv rasterio && \
micromamba clean --all --yes
ENV AUTORIFT=opt/conda/envs/cautorift/lib/python3.9/site-packages/autoRIFT/autoRIFT.py
ENV SITEPACKAGES=`micromamba run -n cautorift python -m site | grep -m 1 site-packages | sed "s/[,']//g"`
ENV AUTORIFT=${SITEPACKAGES}/autoRIFT/autoRIFT.py
RUN sed -i 's/np.bool/bool/g' $AUTORIFT && \
sed -i 's/np.int/int/g' $AUTORIFT

Expand Down

0 comments on commit 06324bc

Please sign in to comment.