Update Dockerfile
Browse files- Dockerfile +3 -13
Dockerfile
CHANGED
|
@@ -12,25 +12,15 @@ RUN git clone https://github.com/Graylab/DFMDock.git
|
|
| 12 |
# Change into the cloned repository
|
| 13 |
WORKDIR /usr/src/app/DFMDock
|
| 14 |
|
| 15 |
-
# Create Conda environment from the environment.yml file
|
| 16 |
-
RUN conda env create -f environment.yml
|
| 17 |
-
|
| 18 |
-
# Activate the Conda environment
|
| 19 |
-
SHELL ["conda", "run", "-n", "DFMDock", "/bin/bash", "-c"]
|
| 20 |
-
|
| 21 |
# Install the package in editable mode
|
| 22 |
RUN pip install -e .
|
| 23 |
|
| 24 |
-
# install dependcies
|
| 25 |
-
RUN conda install -y pandas numpy scikit-learn
|
| 26 |
-
RUN pip3 install torch torchvision torchaudio
|
| 27 |
-
|
| 28 |
# Change back
|
| 29 |
WORKDIR /usr/src/app
|
| 30 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
| 31 |
|
| 32 |
-
#
|
| 33 |
-
|
|
|
|
| 34 |
|
| 35 |
#if you need to download executable and run them switch to the default non-root user
|
| 36 |
USER user
|
|
|
|
| 12 |
# Change into the cloned repository
|
| 13 |
WORKDIR /usr/src/app/DFMDock
|
| 14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
# Install the package in editable mode
|
| 16 |
RUN pip install -e .
|
| 17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
# Change back
|
| 19 |
WORKDIR /usr/src/app
|
|
|
|
| 20 |
|
| 21 |
+
# install dependcies
|
| 22 |
+
RUN conda install -y pandas numpy scikit-learn
|
| 23 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 24 |
|
| 25 |
#if you need to download executable and run them switch to the default non-root user
|
| 26 |
USER user
|