File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed
Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 11###################################### Image ######################################
22ARG CENTOS_VERSION=8
3- ARG PACKAGES
43
54## build Image
65FROM centos:${CENTOS_VERSION}
@@ -20,14 +19,20 @@ RUN yum update -y && \
2019 glibc && \
2120 yum clean all
2221
22+ # pip
23+ ## upgrade only base packages which are installed by 'yum install python3-pip'
24+ RUN pip3 list -o | cut -d' ' -f1 | xargs -n1 pip3 install --upgrade
25+
26+ ################################## Image Config ###################################
27+ ARG PACKAGES
28+
29+ WORKDIR /root
30+
2331## custom packages to install
2432RUN test -n "${PACKAGES}" && \
25- yum install -y " ${PACKAGES}" && \
33+ yum install -y ${PACKAGES} && \
2634 yum clean all || :
2735
28- ## pip
29- RUN pip3 list -o | cut -d' ' -f1 | xargs -n1 pip3 install --upgrade
30-
3136###################################### Tools ######################################
3237# define versions
3338ARG ANSIBLE_VERSION
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ vi .docker_build
1818| ---------------- | -------- | ------- |
1919| CENTOS_VERSION | no | 8 |
2020
21- ### Packages
21+ ### Image Config
2222
2323Further packages to install can be specified
2424
You can’t perform that action at this time.
0 commit comments