feat: add python3, pip, pipx to preinstalled utils
This commit is contained in:
parent
32ffc099d3
commit
5b099f59e6
1 changed files with 9 additions and 4 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue