garcon-media (latest)

Published 2026-11-28 05:04:23 +00:00 by janhouse

Installation

docker pull git.janhouse.lv/janhouse/garcon-media:latest
sha256:a6679ecaa1dae5f7ddbe199acb35d59761b8ed4e6e59cf08db92ecbec5e7f6b1

Images

Digest OS / Arch Size
bbb9f940e1 linux/amd64 1.1 GiB

Image Layers ( linux/amd64)

# debian.sh --arch 'amd64' out/ 'bookworm' '@1792531975'
RUN /bin/sh -c groupadd --gid 1000 node && useradd --uid 1000 --gid node --shell /bin/bash --create-home node # buildkit
ENV NODE_VERSION=24.22.1
RUN /bin/sh -c ARCH= OPENSSL_ARCH= && dpkgArch="$(dpkg --print-architecture)" && case "${dpkgArch##*-}" in amd64) ARCH='x64' OPENSSL_ARCH='linux-x86_64';; ppc64el) ARCH='ppc64le' OPENSSL_ARCH='linux-ppc64le';; arm64) ARCH='arm64' OPENSSL_ARCH='linux-aarch64';; *) echo "unsupported architecture"; exit 1 ;; esac && set -ex && apt-get update && apt-get install -y ca-certificates curl wget gnupg dirmngr xz-utils libatomic1 --no-install-recommends && rm -rf /var/lib/apt/lists/* && export GNUPGHOME="$(mktemp -d)" && for key in 5BE8A3F6C8A5C01D106C0AD820B1A390B168D356 DD792F5973C6DE52C432CBDAC77ABFA00DDBF2B7 CC68F5A3106FF448322E48ED27F5E38D5B0A215F 890C08DB8579162FEE0DF9DB8BEAB4DFCF555EF4 C82FA3AE1CBEDC6BE46B9360C43CEC45C17AB93C 108F52B48DB57BB0CC439B2997B01419BD92F80A 655F3B5C1FB3FA8D1A0CA6BDE4A7D232B936D2FD A363A499291CBBC940DD62E41F10027AF002F8B0 ; do { gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$key" && gpg --batch --fingerprint "$key"; } || { gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key" && gpg --batch --fingerprint "$key"; } ; done && curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-$ARCH.tar.xz" && curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/SHASUMS256.txt.asc" && gpg --batch --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc && gpgconf --kill all && rm -rf "$GNUPGHOME" && grep " node-v$NODE_VERSION-linux-$ARCH.tar.xz\$" SHASUMS256.txt | sha256sum -c - && tar -xJf "node-v$NODE_VERSION-linux-$ARCH.tar.xz" -C /usr/local --strip-components=1 --no-same-owner && rm "node-v$NODE_VERSION-linux-$ARCH.tar.xz" SHASUMS256.txt.asc SHASUMS256.txt && find /usr/local/include/node/openssl/archs -mindepth 1 -maxdepth 1 ! -name "$OPENSSL_ARCH" -exec rm -rf {} \; && apt-mark auto '.*' > /dev/null && find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); print so }' | sort -u | xargs -r dpkg-query --search | cut -d: -f1 | sort -u | xargs -r apt-mark manual && apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false && ln -s /usr/local/bin/node /usr/local/bin/nodejs && node --version && npm --version && rm -rf /tmp/* # buildkit
ENV YARN_VERSION=1.22.22
RUN /bin/sh -c set -ex && savedAptMark="$(apt-mark showmanual)" && apt-get update && apt-get install -y ca-certificates curl wget gnupg dirmngr --no-install-recommends && rm -rf /var/lib/apt/lists/* && export GNUPGHOME="$(mktemp -d)" && for key in 6A010C5166006599AA17F08146C2130DFD2497F5 ; do { gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$key" && gpg --batch --fingerprint "$key"; } || { gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key" && gpg --batch --fingerprint "$key"; } ; done && curl -fsSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz" && curl -fsSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz.asc" && gpg --batch --verify yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz && gpgconf --kill all && rm -rf "$GNUPGHOME" && mkdir -p /opt && tar -xzf yarn-v$YARN_VERSION.tar.gz -C /opt/ && ln -s /opt/yarn-v$YARN_VERSION/bin/yarn /usr/local/bin/yarn && ln -s /opt/yarn-v$YARN_VERSION/bin/yarnpkg /usr/local/bin/yarnpkg && rm yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz && apt-mark auto '.*' > /dev/null && { [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark > /dev/null; } && find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); print so }' | sort -u | xargs -r dpkg-query --search | cut -d: -f1 | sort -u | xargs -r apt-mark manual && apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false && yarn --version && rm -rf /tmp/* # buildkit
COPY docker-entrypoint.sh /usr/local/bin/ # buildkit
ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["node"]
RUN /bin/sh -c apt-get update && apt-get install -y --no-install-recommends ca-certificates curl git less openssh-client procps ripgrep && curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg -o /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
COPY /usr/local/bin/bun /usr/local/bin/bun # buildkit
RUN /bin/sh -c ln -s /usr/local/bin/bun /usr/local/bin/bunx # buildkit
ARG GARCON_UID=1000
ARG GARCON_GID=1000
ARG OPENCODE_VERSION=1.19.3
RUN |3 GARCON_UID=1000 GARCON_GID=1000 OPENCODE_VERSION=1.19.3 /bin/sh -c npm install -g "opencode-ai@${OPENCODE_VERSION}" && npm cache clean --force # buildkit
RUN |3 GARCON_UID=1000 GARCON_GID=1000 OPENCODE_VERSION=1.19.3 /bin/sh -c set -eu; if [ "${GARCON_UID}" -eq 0 ]; then echo "GARCON_UID must identify a non-root user" >&2; exit 1; fi; if [ "${GARCON_GID}" -eq 0 ]; then echo "GARCON_GID must identify a non-root group" >&2; exit 1; fi; userdel -r node 2>/dev/null || true; runtime_user="$(getent passwd "${GARCON_UID}" | cut -d: -f1)"; if [ -n "${runtime_user}" ]; then echo "GARCON_UID ${GARCON_UID} is already assigned to ${runtime_user}" >&2; exit 1; fi; runtime_group="$(getent group "${GARCON_GID}" | cut -d: -f1)"; if [ -z "${runtime_group}" ]; then runtime_group=garcon; groupadd --gid "${GARCON_GID}" "${runtime_group}"; fi; useradd --create-home --uid "${GARCON_UID}" --gid "${runtime_group}" --shell /bin/bash garcon; install -d -o "${GARCON_UID}" -g "${GARCON_GID}" /projects # buildkit
ENV HOME=/home/garcon
ENV PATH=/home/garcon/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ENV CLAUDE_CONFIG_DIR=/home/garcon/.claude
SHELL [/bin/bash -o pipefail -c]
USER garcon
RUN |3 GARCON_UID=1000 GARCON_GID=1000 OPENCODE_VERSION=1.19.3 /bin/bash -o pipefail -c curl -fsSL https://claude.ai/install.sh | bash # buildkit
RUN |3 GARCON_UID=1000 GARCON_GID=1000 OPENCODE_VERSION=1.19.3 /bin/bash -o pipefail -c curl -fsSL https://cursor.com/install | bash # buildkit
RUN |3 GARCON_UID=1000 GARCON_GID=1000 OPENCODE_VERSION=1.19.3 /bin/bash -o pipefail -c curl -fsSL https://ampcode.com/install.sh | bash # buildkit
RUN |3 GARCON_UID=1000 GARCON_GID=1000 OPENCODE_VERSION=1.19.3 /bin/bash -o pipefail -c curl -fsSL https://app.factory.ai/cli | sh # buildkit
RUN |3 GARCON_UID=1000 GARCON_GID=1000 OPENCODE_VERSION=1.19.3 /bin/bash -o pipefail -c rm -rf "${HOME}/.agents" "${HOME}/.claude" "${HOME}/.claude.json" "${HOME}/.codex" "${HOME}/.config" "${HOME}/.cursor" "${HOME}/.factory" "${HOME}/.garcon" "${HOME}/.local/share/amp" "${HOME}/.local/share/opencode" "${HOME}/.local/state/opencode" "${HOME}/.pi" "${HOME}/.ssh" && mkdir -p "${HOME}/.agents" "${HOME}/.claude" "${HOME}/.codex" "${HOME}/.config/amp" "${HOME}/.config/gh" "${HOME}/.config/git" "${HOME}/.config/opencode" "${HOME}/.cursor" "${HOME}/.factory" "${HOME}/.garcon" "${HOME}/.local/share/amp" "${HOME}/.local/share/opencode" "${HOME}/.local/state/opencode" "${HOME}/.pi" "${HOME}/.ssh" && chmod 700 "${HOME}/.ssh" # buildkit
USER root
WORKDIR /app
COPY /app/package.json /app/bun.lock /app/bunfig.toml ./ # buildkit
COPY /app/node_modules/ node_modules/ # buildkit
COPY /app/server/ server/ # buildkit
COPY /app/common/ common/ # buildkit
COPY /app/server-agents/ server-agents/ # buildkit
COPY /app/web/build/ web/build/ # buildkit
COPY /app/cli/ cli/ # buildkit
COPY --chmod=755 docker/garcon-cli /usr/local/bin/garcon-cli # buildkit
RUN |3 GARCON_UID=1000 GARCON_GID=1000 OPENCODE_VERSION=1.19.3 /bin/bash -o pipefail -c test -x /app/server-agents/codex/node_modules/.bin/codex && test -x /app/server-agents/pi/node_modules/.bin/pi && ln -s /app/server-agents/codex/node_modules/.bin/codex /usr/local/bin/codex && ln -s /app/server-agents/pi/node_modules/.bin/pi /usr/local/bin/pi && printf '%s\n' 'export PATH="$HOME/.local/bin:$PATH"' > /etc/profile.d/garcon-path.sh # buildkit
ENV CODEX_HOME=/home/garcon/.codex
ENV GARCON_CONFIG_DIR=/home/garcon/.garcon
ENV GARCON_BIND_ADDRESS=0.0.0.0
ENV GARCON_PORT=8080
ENV GARCON_PROJECT_BASE_DIR=/projects
ENV GIT_CONFIG_GLOBAL=/home/garcon/.config/git/config
ENV PI_CODING_AGENT_DIR=/home/garcon/.pi/agent
ENV PI_TELEMETRY=0
ENV SHELL=/bin/bash
EXPOSE [8080/tcp]
USER garcon
RUN |3 GARCON_UID=1000 GARCON_GID=1000 OPENCODE_VERSION=1.19.3 /bin/bash -o pipefail -c garcon-cli --help > /dev/null # buildkit
CMD ["bun" "server/main.ts"]
USER root
COPY /usr/local/bin/bun /usr/local/bin/bun # buildkit
RUN /bin/bash -o pipefail -c apt-get update && apt-get install -y --only-upgrade --no-install-recommends libbrotli1 libexpat1 libsasl2-2 libsasl2-modules-db libssl3 openssl && rm -rf /var/lib/apt/lists/* && bun --version | grep -qx '1.4.4' && dpkg-query -W -f '${Version}' libbrotli1 | grep -q 'deb12u' # buildkit
USER garcon

Labels

Key Value
org.opencontainers.image.created 2026-10-22T09:19:51.620Z
org.opencontainers.image.description Self-hosted browser workspace to run coding agents in parallel, steer work as it runs, review diffs, and ship.
org.opencontainers.image.licenses NOASSERTION
org.opencontainers.image.revision 0f97219a21a8b9da1eb0b4657530ea674b03aa35
org.opencontainers.image.source https://git.janhouse.lv/janhouse/infra-images
org.opencontainers.image.title garcon
org.opencontainers.image.url https://github.com/cfal/garcon
org.opencontainers.image.version sha-91c320ad5106c136506f1bf7bb727526a1228762
Details
Container
2026-11-28 05:04:23 +00:00
0
OCI / Docker
Versions (7) View all
20261128 2026-11-28
latest 2026-11-28
1.20261128.26 2026-11-28
20261121 2026-11-21
1.20261121.25 2026-11-21