Skip to content
Snippets Groups Projects
Commit 9f163157 authored by Cristiano Köhler's avatar Cristiano Köhler
Browse files

Dockerfile for 3.8, based on the conda installation

parent 99cb11ec
No related branches found
No related tags found
No related merge requests found
FROM python:3.11
# Install system deps
RUN apt-get update && apt-get install -y \
wget \
bzip2 \
ca-certificates \
libglib2.0-0 \
libxext6 \
libsm6 \
libxrender1 \
git \
&& rm -rf /var/lib/apt/lists/*
# Install Miniforge
ENV CONDA_DIR=/opt/conda
RUN wget https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh -O /tmp/miniforge.sh && \
bash /tmp/miniforge.sh -b -p $CONDA_DIR && \
rm /tmp/miniforge.sh
ENV PATH=$CONDA_DIR/bin:$PATH
# Create NEST conda environment using mamba
RUN mamba create --name nest -c conda-forge python=3.11 nest-simulator==3.8 -y
# Use the environment by default
ENV PATH=$CONDA_DIR/envs/nest/bin:$PATH
WORKDIR /usr/src/app
RUN pip install --no-cache-dir --upgrade pip
RUN pip install cwltool
COPY nest_simulation_cli.py nest_simulation_cli.py
RUN chmod +x nest_simulation_cli.py
ENV PATH="/usr/src/app:$PATH"
CMD [ "/bin/sh" ]
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment