feat: add python3, pip, pipx to preinstalled utils
All checks were successful
/ pre-run (push) Successful in 25s
/ post-run (push) Successful in 28s
/ build-images (ubuntu-2204) (push) Successful in 3m55s

This commit is contained in:
Marc 2024-07-25 19:08:37 -04:00
parent 32ffc099d3
commit 5b099f59e6
Signed by: marc
GPG key ID: 048E042F22B5DC79

View file

@ -11,14 +11,17 @@ RUN apt update && \
git \ git \
xz-utils \ xz-utils \
ca-certificates \ ca-certificates \
unzip \ python3 \
python3-pip \
python3-venv \
--no-install-recommends \ --no-install-recommends \
--autoremove --autoremove
FROM skeleton as build FROM skeleton as build-node
WORKDIR tmp WORKDIR tmp
# Install node.
RUN curl https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.xz \ RUN curl https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.xz \
--output /tmp/node-v$NODE_VERSION-linux-x64.tar.xz && \ --output /tmp/node-v$NODE_VERSION-linux-x64.tar.xz && \
tar -xf /tmp/node-v$NODE_VERSION-linux-x64.tar.xz tar -xf /tmp/node-v$NODE_VERSION-linux-x64.tar.xz
@ -27,7 +30,9 @@ FROM skeleton as runner
WORKDIR /runner WORKDIR /runner
COPY --from=build /tmp/node-v$NODE_VERSION-linux-x64/bin/* /bin/ COPY --from=build-node /tmp/node-v$NODE_VERSION-linux-x64/bin/* /bin/
COPY --from=build /tmp/node-v$NODE_VERSION-linux-x64/lib/* /lib/ COPY --from=build-node /tmp/node-v$NODE_VERSION-linux-x64/lib/* /lib/
RUN python3 -m pip install pipx
COPY ./files/registries.conf /etc/containers/registries.conf COPY ./files/registries.conf /etc/containers/registries.conf