Robert Butzhammer robert
  • Joined on 2019-07-15

claude-devcontainer (8c9bab1c66583a467400974f6a3db52997863c10)

Published 2026-08-07 20:13:15 +00:00 by robert

Installation

docker pull pages.butzei.de/robert/claude-devcontainer:8c9bab1c66583a467400974f6a3db52997863c10
sha256:00598f003cf55ced57785a43ea241fd15eaa11dd93ee93d5f6e9e679cc984fd1

Image Layers

ARG RELEASE
ARG LAUNCHPAD_BUILD_ARCH
LABEL org.opencontainers.image.version=24.04
ADD file:46ac5b8ee4c64ad9ebe840abd5619f571a617ac19483764d47d0eeba7907934f in /
CMD ["/bin/bash"]
ENV APP_UID=1654 ASPNETCORE_HTTP_PORTS=8080 DOTNET_RUNNING_IN_CONTAINER=true
RUN /bin/sh -c apt-get update && apt-get install -y --no-install-recommends ca-certificates libc6 libgcc-s1 libicu74 libssl3t64 libstdc++6 tzdata tzdata-legacy && rm -rf /var/lib/apt/lists/* # buildkit
RUN /bin/sh -c groupadd --gid=$APP_UID app && useradd --no-log-init --uid=$APP_UID --gid=$APP_UID --create-home app # buildkit
ENV DOTNET_VERSION=10.0.9
COPY /dotnet /usr/share/dotnet # buildkit
RUN /bin/sh -c ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet # buildkit
ENV ASPNET_VERSION=10.0.9
COPY /dotnet /usr/share/dotnet # buildkit
ENV DOTNET_GENERATE_ASPNET_CERTIFICATE=false DOTNET_NOLOGO=true DOTNET_SDK_VERSION=10.0.301 DOTNET_USE_POLLING_FILE_WATCHER=true NUGET_XMLDOC_MODE=skip POWERSHELL_DISTRIBUTION_CHANNEL=PSDocker-DotnetSDK-Ubuntu-24.04 DOTNET_ROLL_FORWARD=Major
RUN /bin/sh -c apt-get update && apt-get install -y --no-install-recommends curl git libatomic1 wget && rm -rf /var/lib/apt/lists/* # buildkit
COPY /dotnet /usr/share/dotnet # buildkit
RUN /bin/sh -c ln -s /usr/share/dotnet/dnx /usr/bin/dnx && dotnet help # buildkit
RUN /bin/sh -c powershell_version=7.6.2 && curl --fail --show-error --location --output PowerShell.Linux.x64.$powershell_version.nupkg https://powershellinfraartifacts-gkhedzdeaghdezhr.z01.azurefd.net/tool/$powershell_version/PowerShell.Linux.x64.$powershell_version.nupkg && powershell_sha512='c97cbad25218d4e5048ec827f15c2a86df893e6f0a36511005cdf0321f4e1c630cdfd0fc78ad8b82ce75ba6e0a218c35e6bada88a0c2caac91af381642c55720' && echo "$powershell_sha512 PowerShell.Linux.x64.$powershell_version.nupkg" | sha512sum -c - && mkdir --parents /usr/share/powershell && dotnet tool install --add-source / --tool-path /usr/share/powershell --version $powershell_version PowerShell.Linux.x64 && dotnet nuget locals all --clear && rm PowerShell.Linux.x64.$powershell_version.nupkg && ln -s /usr/share/powershell/pwsh /usr/bin/pwsh && chmod 755 /usr/share/powershell/pwsh && chmod 755 /usr/share/powershell/.store/powershell.linux.x64/$powershell_version/powershell.linux.x64/$powershell_version/tools/*/any/pwsh && find /usr/share/powershell -print | grep -i '.*[.]nupkg$' | xargs rm # buildkit
RUN /bin/sh -c apt-get update && apt-get install -y --no-install-recommends curl git gnupg ca-certificates gosu postgresql-client && curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && apt-get install -y nodejs && curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg && chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg && echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" > /etc/apt/sources.list.d/github-cli.list && apt-get update && apt-get install -y --no-install-recommends gh && rm -rf /var/lib/apt/lists/* # buildkit
RUN /bin/sh -c npm install -g @anthropic-ai/claude-code # buildkit
ARG DEV_UID=1000
ARG DEV_GID=1000
RUN |2 DEV_UID=1000 DEV_GID=1000 /bin/sh -c if ! getent group ${DEV_GID} >/dev/null; then groupadd -g ${DEV_GID} dev; elif ! getent group dev >/dev/null; then groupmod -n dev "$(getent group ${DEV_GID} | cut -d: -f1)"; fi && if ! getent passwd ${DEV_UID} >/dev/null; then useradd -u ${DEV_UID} -g ${DEV_GID} -m -s /bin/bash dev; elif ! getent passwd dev >/dev/null; then old="$(getent passwd ${DEV_UID} | cut -d: -f1)"; usermod -l dev -g ${DEV_GID} -d /home/dev -m "$old" && chsh -s /bin/bash dev; fi # buildkit
ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright
RUN |2 DEV_UID=1000 DEV_GID=1000 /bin/sh -c npm install -g playwright && playwright install chromium firefox --with-deps && npm uninstall -g playwright && chmod -R a+rX /ms-playwright # buildkit
COPY setup-claude.sh /usr/local/bin/setup-claude.sh # buildkit
COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh # buildkit
RUN |2 DEV_UID=1000 DEV_GID=1000 /bin/sh -c chmod +x /usr/local/bin/setup-claude.sh /usr/local/bin/docker-entrypoint.sh # buildkit
USER dev
ENV HOME=/home/dev
RUN |2 DEV_UID=1000 DEV_GID=1000 /bin/sh -c dotnet tool install --global dotnet-ef # buildkit
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/dev/.dotnet/tools
USER root
WORKDIR /workspace
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
CMD ["sleep" "infinity"]

Labels

Key Value
org.opencontainers.image.version 24.04
Details
Container
2026-08-07 20:13:15 +00:00
0
OCI / Docker
linux/amd64
1.2 GiB
Versions (7) View all