| LABEL org.opencontainers.image.title=Arch Linux base Image |
| LABEL org.opencontainers.image.description=Official containerd image of Arch Linux, a simple, lightweight Linux distribution aimed for flexibility. |
| LABEL org.opencontainers.image.authors=Santiago Torres-Arias <santiago@archlinux.org> (@SantiagoTorres), Christian Rebischke <Chris.Rebischke@archlinux.org> (@shibumi), Justin Kromlinger <hashworks@archlinux.org> (@hashworks) |
| LABEL org.opencontainers.image.url=https://gitlab.archlinux.org/archlinux/archlinux-docker/-/blob/master/README.md |
| LABEL org.opencontainers.image.documentation=https://wiki.archlinux.org/title/Docker#Arch_Linux |
| LABEL org.opencontainers.image.source=https://gitlab.archlinux.org/archlinux/archlinux-docker |
| LABEL org.opencontainers.image.licenses=GPL-3.0-or-later |
| LABEL org.opencontainers.image.version=20260503.0.523481 |
| LABEL org.opencontainers.image.revision=b43ff00eac5d363450c033c3387cf566bc5650a0 |
| LABEL org.opencontainers.image.created=2026-05-03T00:09:00+00:00 |
| COPY /rootfs/ / # buildkit |
| RUN /bin/sh -c ldconfig && sed -i '/BUILD_ID/a VERSION_ID=20260503.0.523481' /etc/os-release && true # buildkit |
| ENV LANG=C.UTF-8 |
| CMD ["/usr/bin/bash"] |
| ARG OPENCODE_VERSION=1.14.48 |
| COPY mirrorlist /etc/pacman.d/mirrolist # buildkit |
| RUN |1 OPENCODE_VERSION=1.14.48 /bin/sh -c pacman-key --init # buildkit |
| ADD https://gitea.woggioni.net/api/packages/woggioni/arch/repository.key ./repository.key # buildkit |
| RUN |1 OPENCODE_VERSION=1.14.48 /bin/sh -c pacman-key --add repository.key # buildkit |
| RUN |1 OPENCODE_VERSION=1.14.48 /bin/sh -c pacman-key --lsign-key 0D28BF66FDB45D18D8EBEE5D4C91DADCD00B3F77 # buildkit |
| RUN |1 OPENCODE_VERSION=1.14.48 /bin/sh -c cat pacman-gitea-repository.conf >> /etc/pacman.conf # buildkit |
| RUN |1 OPENCODE_VERSION=1.14.48 /bin/sh -c echo PATH DEFAULT=${HOME}/.local/bin:/usr/local/bin:/bin >> /etc/security/pam_env.conf # buildkit |
| RUN |1 OPENCODE_VERSION=1.14.48 /bin/sh -c rm repository.key # buildkit |
| RUN |1 OPENCODE_VERSION=1.14.48 /bin/sh -c pacman -Syu --noconfirm # buildkit |
| RUN |1 OPENCODE_VERSION=1.14.48 /bin/sh -c pacman -S --noconfirm --needed rustup rust-analyzer jdtls python-pipx ripgrep git rustup gradle curl sccache openssh helix bash-language-server marksman python-lsp-server vscode-css-languageserver vscode-html-languageserver vscode-json-languageserver yaml-language-server base-devel # buildkit |
| RUN |1 OPENCODE_VERSION=1.14.48 /bin/sh -c pacman -S --noconfirm --needed jdk25-graalvm-ce-bin # buildkit |
| RUN |1 OPENCODE_VERSION=1.14.48 /bin/sh -c useradd -m -d /var/lib/opencode opencode # buildkit |
| RUN |1 OPENCODE_VERSION=1.14.48 /bin/sh -c mkdir /workspace # buildkit |
| RUN |1 OPENCODE_VERSION=1.14.48 /bin/sh -c chown opencode:opencode /workspace # buildkit |
| USER opencode |
| RUN |1 OPENCODE_VERSION=1.14.48 /bin/sh -c pipx install pyright # buildkit |
| USER root |
| ADD https://github.com/anomalyco/opencode/releases/download/v1.14.48/opencode-linux-x64.tar.gz ./opencode.tgz # buildkit |
| RUN |1 OPENCODE_VERSION=1.14.48 /bin/sh -c tar -xvf ./opencode.tgz -C /usr/bin # buildkit |
| RUN |1 OPENCODE_VERSION=1.14.48 /bin/sh -c rm opencode.tgz # buildkit |
| ADD --chown=opencode:opencode ./opencode.json /etc/opencode/opencode.json # buildkit |
| RUN |1 OPENCODE_VERSION=1.14.48 /bin/sh -c mkdir -p /usr/lib/opencode/addons # buildkit |
| ADD --chmod=644 https://repo1.maven.org/maven2/org/projectlombok/lombok/1.18.44/lombok-1.18.44.jar /usr/lib/opencode/addons/lombok.jar # buildkit |
| ENV OPENCODE_CONFIG=/etc/opencode/opencode.json |
| ENV EDITOR=helix |
| USER opencode |
| WORKDIR /workspace |
| ENTRYPOINT ["opencode"] |
| VOLUME [/var/lib/opencode /workspace] |