1FROM registry.fedoraproject.org/fedora:44@sha256:0d2a354dfdf7ba75083fe371eb6239842fe13f38c52d339dae1ebcf13c7c4062
2
3# Development tools, plus Chromium, Xvfb and fonts for headless browser and Electron checks.
4RUN dnf -y install --setopt=install_weak_deps=False \
5 bzip2 cargo clang cmake diffutils fd-find file findutils gcc gcc-c++ git glibc-gconv-extra \
6 hostname ImageMagick iproute jq less libsecret-devel libxcrypt-compat lld lsof make neovim \
7 openssh-clients openssl-devel patch procps-ng python3 ripgrep rsync rust tar time tree unzip \
8 which xz zip zlib-ng-compat-devel zsh \
9 chromium fontconfig google-noto-sans-fonts google-noto-sans-mono-fonts google-noto-serif-fonts \
10 liberation-mono-fonts liberation-sans-fonts liberation-serif-fonts mesa-dri-drivers mesa-libGLES dbus-daemon \
11 xorg-x11-server-Xvfb \
12 && dnf clean all
13
14# The container is the sandbox: its seccomp filter blocks the chroot Chromium-based sandboxes need.
15RUN printf '\nCHROMIUM_FLAGS+=" --no-sandbox"\n' >> /etc/chromium/chromium.conf
16ENV ELECTRON_DISABLE_SANDBOX=1 T3CODE_SERVER_BROWSER_SANDBOX=0
17
18RUN curl -fsSLo /tmp/node.tar.xz https://nodejs.org/dist/v26.12.1/node-v26.12.1-linux-x64.tar.xz \
19 && echo "6170b2d474e1c626f43cff3adc118df9fe3b573258a4fc3d850c8dbc6b079bbd /tmp/node.tar.xz" | sha256sum -c \
20 && mkdir -p /opt/node/26.12.1 \
21 && tar -xJf /tmp/node.tar.xz -C /opt/node/26.12.1 --strip-components=1 \
22 && rm /tmp/node.tar.xz \
23 && ln -s /opt/node/26.12.1/bin/node /opt/node/26.12.1/bin/npm /opt/node/26.12.1/bin/npx /usr/local/bin/ \
24 && npm install --global --prefix=/usr/local --allow-scripts=pnpm pnpm@12.14.0 vite-plus@1.3.0 \
25 && npm cache clean --force
26
27ARG UID
28ARG GID
29RUN groupadd --gid "$GID" chloe && useradd --uid "$UID" --gid "$GID" --no-create-home --home-dir /home/clo clo
30USER clo
31ENV HOME=/home/clo LANG=C.UTF-8 PATH=/home/clo/.local/bin:/usr/local/bin:/usr/bin:/bin
32WORKDIR /work/knife
33ENTRYPOINT ["/home/clo/.local/bin/knife", "start", "--mode", "desktop", "--host", "127.0.0.1", "--port", "3773", "--no-browser"]