Skip to content

Commit f66f699

Browse files
up to date Dockerfile
1 parent dbbbb8b commit f66f699

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

Dockerfile

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,24 @@ RUN conda config --add channels conda-forge
1414
RUN conda install mamba
1515

1616
# create the environment
17-
RUN mamba env create -f environment.yml && \
18-
conda init bash && \
19-
echo "conda activate myenv" >> ~/.bashrc
17+
RUN mamba env create -f environment.yml
18+
#&& \
19+
#conda init bash && \
20+
#echo "conda activate myenv" >> ~/.bashrc
2021

2122
# Make RUN commands use the new environment:
22-
SHELL ["conda", "run", "-n", "pairpro", "/bin/bash", "-c"]
23+
SHELL ["conda","run", "-n", "pairpro", "/bin/bash", "-c"]
24+
25+
RUN activate pairpro
2326

2427
# set working directory
2528
WORKDIR /PairProphet/scripts/
2629

27-
RUN conda list
28-
2930
# CMD ["ls"]
30-
# CMD ["python", "train_val_classification.py"]
31-
# CMD ["python", "train_model.py", "--blast", "True"]
31+
# CMD ["python", "train_val_classification.py"] < --- for pairpro/train_val_classification.py
32+
CMD ["python", "train_model.py", "--blast", "True"]
33+
34+
# commmand to build the image: docker build -t training_script .
3235

3336
# need init.py to run training script out of container
3437
# The code to run when container is started:

0 commit comments

Comments
 (0)