Skip to content

Commit

Permalink
docker
Browse files Browse the repository at this point in the history
  • Loading branch information
Robaina committed Sep 10, 2023
1 parent 75e1f48 commit 27026ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ COPY LICENSE .
# Make conda environment and activate
# RUN conda install mamba -n base -c conda-forge
RUN micromamba env create -f envs/pynteny-dev.yml
SHELL ["conda", "run", "-n", "pynteny-dev", "/bin/bash", "-c"]
SHELL ["micromamba", "run", "-n", "pynteny-dev", "/bin/bash", "-c"]
# Build and install Pynteny
RUN poetry build && pip install dist/pynteny*.whl && pynteny --help
# Give read/write permissions to install directory (needed to make config.json)
RUN chmod ugo+rw /opt/conda/envs/pynteny-dev/lib/python3.10/site-packages

# Initialize conda for default user
RUN conda init
RUN micromamba sheel init
# # Activate pynteny environment by default
RUN echo "conda activate pynteny-dev" >> ../root/.bashrc
RUN source ../root/.bashrc

0 comments on commit 27026ee

Please sign in to comment.