Update Coder docker files

This commit is contained in:
2026-06-07 12:52:48 -04:00
parent 10da53dea1
commit 583ade52e3
3 changed files with 73 additions and 30 deletions
+10 -8
View File
@@ -1,27 +1,29 @@
FROM codercom/enterprise-base:ubuntu
ARG GO_VERSION=1.22.5
ARG GO_ARCH=amd64
USER root
# 1. Update system packages and install dependencies
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get upgrade -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y curl wget git sudo zip unzip golang && \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
curl wget git sudo zip unzip jq build-essential ca-certificates && \
rm -rf /var/lib/apt/lists/*
# 2. Install Docker CLI
RUN curl -fsSL https://get.docker.com | sh
RUN curl -fsSL "https://go.dev/dl/go${GO_VERSION}.linux-${GO_ARCH}.tar.gz" -o /tmp/go.tar.gz && \
tar -C /usr/local -xzf /tmp/go.tar.gz && \
rm /tmp/go.tar.gz
USER coder
# 3. Install Bun
RUN curl -fsSL https://bun.sh/install | bash
# 4. Install SDKMAN! and Maven
RUN curl -s "https://get.sdkman.io" | bash && \
bash -c "source $HOME/.sdkman/bin/sdkman-init.sh && sdk install maven"
# 5. Install Opencode
RUN curl -fsSL https://opencode.ai/install | bash
# Add tools to path
ENV PATH="/home/coder/.opencode/bin:/home/coder/.bun/bin:${PATH}"
ENV PATH="/usr/local/go/bin:/home/coder/go/bin:/home/coder/.opencode/bin:/home/coder/.bun/bin:${PATH}"