Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add cpu dockerfile #13

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
29 changes: 29 additions & 0 deletions cpu.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
FROM ubuntu:focal

# installing packages required for installation
RUN echo "downloading basic packages for installation"
RUN apt-get update
RUN apt-get install -y tmux wget curl git
RUN apt-get install -y libstdc++6 gcc

RUN gcc --version

# install conda
RUN wget -q -P . https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
RUN bash ./Miniconda3-latest-Linux-x86_64.sh -b -p /conda
RUN rm Miniconda3-latest-Linux-x86_64.sh
RUN . "/conda/etc/profile.d/conda.sh"
ENV PATH="/conda/condabin:${PATH}"

RUN mkdir lab-equibind
COPY environment_cpuonly.yml /lab-equibind/.
RUN conda env create -f lab-equibind/environment_cpuonly.yml

# Switch to the new environment:
SHELL ["conda", "run", "-n", "equibind", "/bin/bash", "-c"]
RUN conda update -n base conda -y
COPY . /lab-equibind/.
WORKDIR /lab-equibind

CMD ["conda", "activate", "equibind-conda"]