-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathDockerfile.test
39 lines (36 loc) · 1.07 KB
/
Dockerfile.test
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
38
39
ARG base
FROM "${base}"
# Check if env-activate.sh gets sourced for login shell and in env-execute.
RUN [ "$( sh -lc 'printf world' )" = 'world' ] \
&& \
[ "$( /usr/local/env-execute sh -c 'printf world' )" = 'world' ] \
&& \
printf '%s\n' \
'printf "hello "' \
> /usr/local/env-activate.sh \
&& \
[ "$( sh -lc 'printf world' )" = 'hello world' ] \
&& \
[ "$( /usr/local/env-execute sh -c 'printf world' )" = 'hello world' ] \
&& \
printf '' \
> /usr/local/env-activate.sh
# Check if all desired locales are there.
RUN locale -a | grep -i 'c\.utf-\?8' \
&& \
locale -a | grep -i 'en_us\.utf-\?8'
RUN apt-get update -qq \
&& \
DEBIAN_FRONTEND=noninteractive \
apt-get install --yes --no-install-recommends \
ca-certificates \
wget \
&& \
arch=$(uname -m) \
&& \
wget --quiet \
"https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-${arch}.sh" \
&& \
sh ./Miniforge3-Linux-${arch}.sh -bp /opt/conda \
&& \
/opt/conda/bin/conda info --all