runner-images/images/ubuntu-2204/Dockerfile
Marc Cataford 5b099f59e6
All checks were successful
/ pre-run (push) Successful in 25s
/ post-run (push) Successful in 28s
/ build-images (ubuntu-2204) (push) Successful in 3m55s
feat: add python3, pip, pipx to preinstalled utils
2024-07-25 19:08:37 -04:00

38 lines
948 B
Docker

FROM ubuntu:22.04 as skeleton
ENV NODE_VERSION="20.12.2"
RUN apt update && \
apt upgrade -y && \
apt install -y \
curl \
podman \
jq \
git \
xz-utils \
ca-certificates \
python3 \
python3-pip \
python3-venv \
--no-install-recommends \
--autoremove
FROM skeleton as build-node
WORKDIR tmp
# Install node.
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 && \
tar -xf /tmp/node-v$NODE_VERSION-linux-x64.tar.xz
FROM skeleton as runner
WORKDIR /runner
COPY --from=build-node /tmp/node-v$NODE_VERSION-linux-x64/bin/* /bin/
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