FROM debian:bookworm-slim AS runtime RUN apt-get update && apt-get install -y --no-install-recommends \ ca-certificates \ curl \ git \ openssh-client \ && 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/* \ && useradd --create-home --shell /bin/bash jean \ && mkdir -p /home/jean/.cache /home/jean/.config /home/jean/.local/share/com.jean.desktop \ && chown -R jean:jean /home/jean COPY jean-server /usr/local/bin/jean-server COPY docker-entrypoint.sh /usr/local/bin/jean-server-entrypoint RUN chmod +x /usr/local/bin/jean-server /usr/local/bin/jean-server-entrypoint USER jean ENV PATH="/home/jean/.local/bin:${PATH}" \ JEAN_HOST=0.0.0.0 \ JEAN_PORT=3456 EXPOSE 3456 VOLUME ["/home/jean"] ENTRYPOINT ["/usr/local/bin/jean-server-entrypoint"]