forked from FaSalih/OpenSPGen
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (23 loc) · 1.06 KB
/
Dockerfile
File metadata and controls
31 lines (23 loc) · 1.06 KB
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
27
28
29
30
31
FROM continuumio/miniconda3
WORKDIR /app
# Copy the repository content
COPY . /app
# Create the conda environment
RUN conda env create -f Python/spg-7.3.yml
# Set path to use the environment by default
ENV PATH=/opt/conda/envs/spg-7.3/bin:$PATH
ENV PATH=/app/Python:$PATH
# Set NSLOTS env var default
ENV NSLOTS=1
# Allow running as root for OpenMPI
ENV OMPI_ALLOW_RUN_AS_ROOT=1
ENV OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1
# Create .nwchemrc file
RUN echo "nwchem_basis_library /opt/conda/envs/spg-7.3/share/nwchem/libraries/" > /root/.nwchemrc && \
echo "nwchem_nwpw_library /opt/conda/envs/spg-7.3/share/nwchem/libraryps/" >> /root/.nwchemrc && \
echo "ff_amber_library /opt/conda/envs/spg-7.3/share/nwchem/amber_s/" >> /root/.nwchemrc && \
echo "ff_spce_library /opt/conda/envs/spg-7.3/share/nwchem/solvents/" >> /root/.nwchemrc && \
echo "ff_charmm_source /opt/conda/envs/spg-7.3/share/nwchem/charmm_s/" >> /root/.nwchemrc && \
echo "ff_charmm_param /opt/conda/envs/spg-7.3/share/nwchem/charmm_p/" >> /root/.nwchemrc
# Default: drop into a shell
CMD ["/bin/bash"]