-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile_bare
37 lines (28 loc) · 882 Bytes
/
Dockerfile_bare
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 ubuntu:22.04
# Platform.
ARG PLATFORM="Linux-x86_64"
# ARG PLATFORM="MacOSX-arm64"
# ARG PLATFORM="Linux-ppc64le"
# Shell.
ENV SHELL=/bin/bash
ENV BASH_ENV=~/.bashrc
SHELL ["/bin/bash", "-c"]
# Working directory.
RUN mkdir -p /app
WORKDIR /app
# Install basics.
RUN apt update && apt install -y wget build-essential git
# For slient installation.
RUN wget -O miniconda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-${PLATFORM}.sh \
&& chmod u+x ./miniconda.sh \
&& ./miniconda.sh -b -p $HOME/miniconda \
&& rm -rf ./miniconda.sh \
&& echo "" > ~/.bashrc \
&& $HOME/miniconda/bin/conda init
# Configure conda-forge and mamba.
RUN source ~/.bashrc \
&& conda config --add channels conda-forge && conda config --set channel_priority strict \
&& conda install -y mamba
# Finally set the working directory to home directory.
WORKDIR /app
CMD ["/bin/bash"]