Skip to content

Commit

Permalink
docker file and entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
aradhakrishnanGFDL committed Oct 11, 2023
1 parent 00eab04 commit a844809
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM continuumio/miniconda3

WORKDIR /app

# Create the environment:
COPY environment.yml .
RUN conda env create -f environment.yml --name catalogbuilder

# Make RUN commands use the new environment:
RUN echo "conda activate myenv" >> ~/.bashrc
SHELL ["/bin/bash", "--login", "-c"]

# The code to run when container is started:
ENTRYPOINT ["./entrypoint.sh"]

7 changes: 7 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash --login
# The --login ensures the bash configuration is loaded,
# enabling Conda.

# Temporarily disable strict mode and activate conda:
conda activate catalogbuilder

0 comments on commit a844809

Please sign in to comment.