38 lines
948 B
Docker
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
|