code-forge/images/Dockerfile.ubuntu-latest

29 lines
779 B
Text

FROM ubuntu:22.04
ENV NODE_VERSION="20.12.2"
RUN apt update && apt upgrade -y --autoremove
RUN apt install -y \
jq \
podman \
git \
xz-utils \
curl \
ca-certificates \
--no-install-recommends
# Node needs to be installed to ensure that actions can run in the
# runner.
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 && \
cp -r /tmp/node-v$NODE_VERSION-linux-x64/bin/* /bin/ && \
cp -r /tmp/node-v$NODE_VERSION-linux-x64/lib/* /lib/ && \
rm -rf /tmp/node-*
WORKDIR /
COPY ./files/registries.conf /etc/containers/registries.conf