-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (18 loc) · 890 Bytes
/
Dockerfile
File metadata and controls
26 lines (18 loc) · 890 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM ubuntu:22.04
RUN apt-get update && apt-get install -y build-essential libarchive-dev wget git
# Install Mamba
ENV CONDA_DIR /opt/conda
RUN wget https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh -O ~/miniforge.sh && /bin/bash ~/miniforge.sh -b -p /opt/conda
ENV PATH=$CONDA_DIR/bin:$PATH
# Adding to bashrc
RUN echo "export PATH=$CONDA_DIR:$PATH" >> ~/.bashrc
# Creating Conda Envs
COPY conda-env.yml .
RUN mamba env create -f conda-env.yml -n smallmol_mod_site_localization_dash
# Copying in the module and installing
#COPY ModiFinder_base /app/ModiFinder_base
#RUN /bin/bash -c "source activate smallmol_mod_site_localization_dash && pip install -e /app/ModiFinder_base"
RUN /bin/bash -c "source activate smallmol_mod_site_localization_dash && pip install modifinder==2.0.2b0"
COPY . /app
WORKDIR /app
RUN chmod +x /app/run_server.sh