Update Dockerfile
Browse files- Dockerfile +18 -0
Dockerfile
CHANGED
|
@@ -6,10 +6,28 @@ COPY --link --chown=1000 ./ /usr/src/app
|
|
| 6 |
|
| 7 |
COPY . .
|
| 8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
# install dependcies
|
| 10 |
RUN conda install -y pandas numpy scikit-learn
|
| 11 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 12 |
|
|
|
|
|
|
|
|
|
|
| 13 |
#if you need to download executable and run them switch to the default non-root user
|
| 14 |
USER user
|
| 15 |
|
|
|
|
| 6 |
|
| 7 |
COPY . .
|
| 8 |
|
| 9 |
+
# Clone the GitHub repository
|
| 10 |
+
RUN git clone https://github.com/Graylab/DFMDock.git
|
| 11 |
+
|
| 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", "env_name", "/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 pip install --no-cache-dir -r requirements.txt
|
| 27 |
|
| 28 |
+
# Activate the environment by default when starting the container
|
| 29 |
+
CMD ["conda", "run", "-n", "env_name", "bash"]
|
| 30 |
+
|
| 31 |
#if you need to download executable and run them switch to the default non-root user
|
| 32 |
USER user
|
| 33 |
|