| ARG RELEASE |
| ARG LAUNCHPAD_BUILD_ARCH |
| LABEL org.opencontainers.image.version=24.04 |
| ADD file:8ce1caf246e7c778bca84c516d02fd4e83766bb2c530a0fffa8a351b560a2728 in / |
| CMD ["/bin/bash"] |
| ARG GO_VERSION=1.23.4 |
| ARG NODE_MAJOR=22 |
| ARG TARGETARCH=amd64 |
| ENV DEBIAN_FRONTEND=noninteractive PATH=/usr/local/go/bin:/home/coder/go/bin:/home/coder/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
| RUN |3 GO_VERSION=1.23.4 NODE_MAJOR=22 TARGETARCH=amd64 /bin/sh -c apt-get update && apt-get install -y --no-install-recommends ca-certificates curl wget git sudo build-essential gnupg lsb-release jq vim less unzip zip openssh-client && rm -rf /var/lib/apt/lists/* # buildkit |
| RUN |3 GO_VERSION=1.23.4 NODE_MAJOR=22 TARGETARCH=amd64 /bin/sh -c install -m 0755 -d /etc/apt/keyrings && curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc && chmod a+r /etc/apt/keyrings/docker.asc && echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu $(. /etc/os-release && echo $VERSION_CODENAME) stable" > /etc/apt/sources.list.d/docker.list && apt-get update && apt-get install -y --no-install-recommends docker-ce-cli docker-compose-plugin docker-buildx-plugin && rm -rf /var/lib/apt/lists/* # buildkit |
| RUN |3 GO_VERSION=1.23.4 NODE_MAJOR=22 TARGETARCH=amd64 /bin/sh -c curl -fsSL https://go.dev/dl/go${GO_VERSION}.linux-${TARGETARCH}.tar.gz | tar -C /usr/local -xz # buildkit |
| RUN |3 GO_VERSION=1.23.4 NODE_MAJOR=22 TARGETARCH=amd64 /bin/sh -c curl -fsSL https://deb.nodesource.com/setup_${NODE_MAJOR}.x | bash - && apt-get install -y --no-install-recommends nodejs && rm -rf /var/lib/apt/lists/* # buildkit |
| RUN |3 GO_VERSION=1.23.4 NODE_MAJOR=22 TARGETARCH=amd64 /bin/sh -c userdel -r ubuntu 2>/dev/null || true && useradd --create-home --shell /bin/bash --groups sudo --uid 1000 coder && echo "coder ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers # buildkit |
| USER coder |
| WORKDIR /home/coder |