diff --git a/Dockerfile b/Dockerfile index d18bd40..1f281f7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,11 +6,10 @@ LABEL AlternativeImageName="wollud1969/docker-bash" RUN \ - apk add --no-cache bash curl git python3 gawk sed && \ - P=`pwd` && \ - cd /usr/bin && \ - ln -s python3 python && \ - cd $P + apk add --no-cache bash curl git python3 gawk sed py3-pip && \ + ( cd /usr/bin && ln -s python3 python ) && \ + pip install xmltodict && \ + pip install pyyaml CMD [ "bash" ] diff --git a/readme.md b/readme.md index 5b8bc55..7fe9c47 100644 --- a/readme.md +++ b/readme.md @@ -4,7 +4,7 @@ This is a Docker image directly derived from the Docker image `docker`, which is I use it regularly within Gitlab CI runners. Most recently I was wondering why a specific bash feature (variable indirection) wasn't available in a CI script. The reason was simple: the Docker `docker` image doesn't contain `bash` at all. -This image now is derived from the Docker `docker` image and just adds the bash, sed, gawk, curl, git and python. +This image now is derived from the Docker `docker` image and just adds the bash, sed, gawk, curl, git and python3, pip and the Python modules xmltodict and pyyaml. I would say: Use it the same way as the original image, you just have the additional stuff now.