runner-images/images/ubuntu-2204/Dockerfile
Marc Cataford 8c9aad6be3
Some checks failed
/ build-images (ubuntu-2204) (push) Has been cancelled
feat: set up ubuntu base image build
ci: tag image as latest
2024-07-20 16:33:16 -04:00

33 lines
829 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 \
unzip \
--no-install-recommends \
--autoremove
FROM skeleton as build
WORKDIR tmp
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 /tmp/node-v$NODE_VERSION-linux-x64/bin/* /bin/
COPY --from=build /tmp/node-v$NODE_VERSION-linux-x64/lib/* /lib/
COPY ./files/registries.conf /etc/containers/registries.conf