-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile-core
More file actions
33 lines (30 loc) · 871 Bytes
/
Dockerfile-core
File metadata and controls
33 lines (30 loc) · 871 Bytes
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
FROM python:3.9-alpine
ENV ANSIBLE_VER=2.10.6
EASZLAB_ANSIBLE_TAG=2.10.6-core
RUN set -x \
# Build dependencies
&& apk --no-cache add --virtual build-dependencies \
gcc \
musl-dev \
python3-dev \
libffi-dev \
openssl-dev \
cargo \
build-base \
# Useful tools
&& apk --no-cache add \
bash \
openssh-client \
rsync \
&& pip install pip --upgrade \
&& pip install --no-cache-dir \
ansible-base=="$ANSIBLE_VER" \
# Some module need '/usr/bin/python' exist
&& ln -s -f /usr/local/bin/python3 /usr/bin/python \
&& ln -s -f /usr/local/bin/python3 /usr/bin/python3 \
# Cleaning
&& apk del build-dependencies \
&& rm -rf /var/cache/apk/* \
&& rm -rf /root/.cache \
&& rm -rf /root/.cargo
CMD [ "sleep", "360000000" ]