-
Notifications
You must be signed in to change notification settings - Fork 82
/
Copy pathDockerfile
37 lines (32 loc) · 917 Bytes
/
Dockerfile
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
32
33
34
35
36
37
FROM --platform=linux/amd64 mambaorg/micromamba:0.19.1
# Install base packages.
USER root
RUN apt update && apt install -y \
default-jdk \
bzip2 \
ca-certificates \
curl \
gcc \
git \
wget \
vim \
build-essential \
jq && \
rm -rf /var/lib/apt/lists/*
# Install env
USER $MAMBA_USER
COPY --chown=$MAMBA_USER:$MAMBA_USER environment.yml /tmp/environment.yml
RUN micromamba env create -y -f /tmp/environment.yml && \
micromamba clean --all --yes
# Install conda, so that install.sh files can be run without
# modification.
RUN micromamba install -y --name base -c conda-forge conda
ENV PATH=$PATH:/opt/conda/bin
# Always run inside srbench:
RUN conda init bash
RUN echo "conda activate srbench" >> ~/.bashrc
SHELL ["/bin/bash", "--login", "-c"]
# Copy remaining files and install
COPY --chown=$MAMBA_USER:$MAMBA_USER . .
RUN ./install.sh
CMD ["/bin/bash", "--login"]