discourse-web (v2026.10.0)
Published 2026-11-08 20:06:01 +00:00 by eric
Installation
docker pull gitea.eom.dev/devops/discourse-web:v2026.10.0sha256:b547555bc64321b96ee3f70b45f88f3e1b53aa7bdd9852b4028ae3f430db5213
Image Layers
| # debian.sh --arch 'amd64' out/ 'trixie' '@1793059200' |
| ARG RUBY_VERSION=4.0.9 |
| ENV RUBY_VERSION=4.0.9 |
| RUN |1 RUBY_VERSION=4.0.9 /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends bzip2 ca-certificates libgmp-dev libssl-dev libyaml-dev procps zlib1g-dev ; mkdir -p /usr/local/etc; { echo 'install: --no-document'; echo 'update: --no-document'; } >> /usr/local/etc/gemrc; savedAptMark="$(apt-mark showmanual)"; apt-get install -y --no-install-recommends git dpkg-dev libgdbm-dev ruby autoconf g++ gcc libbz2-dev libgdbm-compat-dev libglib2.0-dev libncurses-dev libxml2-dev libxslt-dev make wget xz-utils ; rustArch=; dpkgArch="$(dpkg --print-architecture)"; case "$dpkgArch" in 'amd64') rustArch='x86_64-unknown-linux-gnu'; rustupUrl='https://static.rust-lang.org/rustup/archive/1.26.0/x86_64-unknown-linux-gnu/rustup-init'; rustupSha256='0b2f6c8f85a3d02fde2efc0ced4657869d73fccfce59defb4e8d29233116e6db' ;; 'arm64') rustArch='aarch64-unknown-linux-gnu'; rustupUrl='https://static.rust-lang.org/rustup/archive/1.26.0/aarch64-unknown-linux-gnu/rustup-init'; rustupSha256='673e336c81c65e6b16dcdede33f4cc9ed0f08bde1dbe7a935f113605292dc800' ;; *) echo >&2 "unsupported architecture: ${dpkgArch}"; exit 1 ;; esac; mkdir -p /tmp/rust; wget -O /tmp/rust/rustup-init "$rustupUrl"; echo "$rustupSha256 */tmp/rust/rustup-init" | sha256sum --check --strict; chmod +x /tmp/rust/rustup-init; export RUSTUP_HOME='/tmp/rust/rustup' CARGO_HOME='/tmp/rust/cargo'; export PATH="$CARGO_HOME/bin:$PATH"; /tmp/rust/rustup-init -y --no-modify-path --profile minimal --default-toolchain '1.77.0' --default-host "$rustArch"; rustc --version; cargo --version; mkdir /src; git -C /src clone https://github.com/rbenv/ruby-build.git; cd /src/ruby-build && ./install.sh; cd / && rm -fr /src; export RUSTUP_HOME='/tmp/rust/rustup' CARGO_HOME='/tmp/rust/cargo'; export PATH="$CARGO_HOME/bin:$PATH"; CONFIGURE_OPTS="--disable-install-doc --enable-yjit" ruby-build ${RUBY_VERSION} /usr/local; rm -rf /tmp/rust; rm -rf /usr/local/bin/ruby-build; rm -rf /var/lib/apt/lists/*; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; find /usr/local -type f -executable -not \( -name '*tkinter*' \) -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", 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; if dpkg -l | grep -i ruby; then exit 1; fi; [ "$(command -v ruby)" = '/usr/local/bin/ruby' ]; gem install bundler -v 4.0.23; bundle config build.ffi --disable-system-libffi; ruby --version; gem --version; bundle --version; gem list bundler; # buildkit |
| ARG DATESTAMP=20261102 |
| ARG DEBIAN_RELEASE=trixie |
| ARG PG_MAJOR=18 |
| ARG PG_MAJOR_OLD=15 |
| ENV PG_MAJOR=18 PG_MAJOR_OLD=15 RUBY_ALLOCATOR=/usr/lib/libjemalloc.so LEFTHOOK=0 DEBIAN_RELEASE=trixie |
| RUN |4 DATESTAMP=20261102 DEBIAN_RELEASE=trixie PG_MAJOR=18 PG_MAJOR_OLD=15 /bin/sh -c groupadd --gid 104 postgres && useradd --uid 101 --gid 104 --home /var/lib/postgresql --shell /bin/bash -c "PostgreSQL administrator,,," postgres && groupadd --gid 106 redis && useradd --uid 103 --gid 106 --home /var/lib/redis --shell /usr/sbin/nologin redis && groupadd --gid 1000 discourse && useradd --uid 1000 --gid 1000 -m --shell /bin/bash discourse # buildkit |
| RUN |4 DATESTAMP=20261102 DEBIAN_RELEASE=trixie PG_MAJOR=18 PG_MAJOR_OLD=15 /bin/sh -c echo 2.0.`date +%Y%m%d` > /VERSION # buildkit |
| RUN |4 DATESTAMP=20261102 DEBIAN_RELEASE=trixie PG_MAJOR=18 PG_MAJOR_OLD=15 /bin/sh -c echo "deb http://deb.debian.org/debian ${DEBIAN_RELEASE}-backports main" > "/etc/apt/sources.list.d/${DEBIAN_RELEASE}-backports.list" # buildkit |
| COPY /tmp/libheif-packages/libheif1.deb /tmp/libheif1.deb # buildkit |
| COPY /tmp/libheif-packages/discourse-libheif-guard.deb /tmp/discourse-libheif-guard.deb # buildkit |
| RUN |4 DATESTAMP=20261102 DEBIAN_RELEASE=trixie PG_MAJOR=18 PG_MAJOR_OLD=15 /bin/sh -c echo "debconf debconf/frontend select Teletype" | debconf-set-selections && apt-get -y update && DEBIAN_FRONTEND=noninteractive apt-get -y install /tmp/libheif1.deb /tmp/discourse-libheif-guard.deb gnupg sudo curl fping locales ca-certificates rsync gawk anacron wget psmisc whois brotli pngcrush pngquant ripgrep poppler-utils catdoc antiword parallel libjbig0 libtiff6 libpng16-16 libjpeg62-turbo libfontconfig1 libwebpdemux2 libwebpmux3 libxext6 librsvg2-2 libgomp1 fonts-urw-base35 advancecomp jpegoptim libjpeg-turbo-progs libglib2.0-0 libexpat1 libexif12 liblcms2-2 liborc-0.4-0 libcgif0 libimagequant0 libjxl0.11 libwebp7 libpango-1.0-0 libpangocairo-1.0-0 libcairo2 && DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends git rsyslog logrotate cron ssh-client less && install -d /usr/share/postgresql-common/pgdg && curl -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc && echo "deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt ${DEBIAN_RELEASE}-pgdg main" > /etc/apt/sources.list.d/pgdg.list && sed -i -e 's/start -q anacron/anacron -s/' /etc/cron.d/anacron && sed -i.bak 's/$ModLoad imklog/#$ModLoad imklog/' /etc/rsyslog.conf && sed -i.bak 's/module(load="imklog")/#module(load="imklog")/' /etc/rsyslog.conf && dpkg-divert --local --rename --add /sbin/initctl && sh -c "test -f /sbin/initctl || ln -s /bin/true /sbin/initctl" && apt-get -y update && DEBIAN_FRONTEND=noninteractive apt-get -y install runit socat libpq-dev postgresql-client-${PG_MAJOR} postgresql-client-${PG_MAJOR_OLD} && mkdir -p /etc/runit/1.d && apt-mark hold libheif1 discourse-libheif-guard && rm /tmp/libheif1.deb /tmp/discourse-libheif-guard.deb && test "$(dpkg-query -W -f='${Version}' libheif1)" = "1.23.7-1discourse1" # buildkit |
| ENV LC_ALL=en_US.UTF-8 |
| ENV LANG=en_US.UTF-8 |
| ENV LANGUAGE=en_US.UTF-8 |
| RUN |4 DATESTAMP=20261102 DEBIAN_RELEASE=trixie PG_MAJOR=18 PG_MAJOR_OLD=15 /bin/sh -c sed -i "s/^# $LANG/$LANG/" /etc/locale.gen && locale-gen # buildkit |
| RUN |4 DATESTAMP=20261102 DEBIAN_RELEASE=trixie PG_MAJOR=18 PG_MAJOR_OLD=15 /bin/sh -c apt update && DEBIAN_FRONTEND=noninteractive apt-get -y install nginx-light libnginx-mod-http-brotli-filter libnginx-mod-http-brotli-static # buildkit |
| RUN |4 DATESTAMP=20261102 DEBIAN_RELEASE=trixie PG_MAJOR=18 PG_MAJOR_OLD=15 /bin/sh -c find /usr/local/share/fonts /usr/share/fonts -type d -exec sh -c 'for dir do touch -d "@$(stat -c %Y "$dir")" "$dir"; done' sh {} + && fc-cache -f # buildkit |
| COPY /usr/local/bin/magick /usr/local/bin/magick # buildkit |
| COPY /usr/local/etc/ImageMagick-7 /usr/local/etc/ImageMagick-7 # buildkit |
| COPY /usr/local/share/ImageMagick-7 /usr/local/share/ImageMagick-7 # buildkit |
| RUN |4 DATESTAMP=20261102 DEBIAN_RELEASE=trixie PG_MAJOR=18 PG_MAJOR_OLD=15 /bin/sh -c ln -s /usr/local/bin/magick /usr/local/bin/animate && ln -s /usr/local/bin/magick /usr/local/bin/compare && ln -s /usr/local/bin/magick /usr/local/bin/composite && ln -s /usr/local/bin/magick /usr/local/bin/conjure && ln -s /usr/local/bin/magick /usr/local/bin/convert && ln -s /usr/local/bin/magick /usr/local/bin/display && ln -s /usr/local/bin/magick /usr/local/bin/identify && ln -s /usr/local/bin/magick /usr/local/bin/import && ln -s /usr/local/bin/magick /usr/local/bin/magick-script && ln -s /usr/local/bin/magick /usr/local/bin/mogrify && ln -s /usr/local/bin/magick /usr/local/bin/montage && ln -s /usr/local/bin/magick /usr/local/bin/stream && test $(magick -version | grep -o -e png -e tiff -e jpeg -e freetype -e heic -e webp | wc -l) -eq 6 # buildkit |
| COPY /usr/local/lib/libvips.so.42 /usr/local/lib/libvips.so.42 # buildkit |
| COPY /usr/local/lib/jpegli/lib/libjpeg.so.62.3.0 /usr/local/lib/jpegli/lib/libjpeg.so.62 # buildkit |
| RUN |4 DATESTAMP=20261102 DEBIAN_RELEASE=trixie PG_MAJOR=18 PG_MAJOR_OLD=15 /bin/sh -c ldconfig && ruby -rfiddle -e 'lib = Fiddle.dlopen("libheif.so.1"); version = Fiddle::Function.new(lib["heif_get_version"], [], Fiddle::TYPE_VOIDP); abort "unexpected libheif version" unless Fiddle::Pointer.new(version.call).to_s == "1.23.7"' && ruby -rfiddle -e 'Fiddle.dlopen("libvips.so.42")' && ldd /usr/local/lib/libvips.so.42 | grep -q '/usr/local/lib/jpegli/lib/libjpeg.so.62' && ldd /usr/local/bin/magick | grep 'libjpeg.so.62' | grep -vq '/usr/local/lib/jpegli/' && if dpkg-query -W -f '${Package} ${db:Status-Status}\n' ghostscript libgs10 libgs-common libgs10-common 2>/dev/null | grep -q ' installed$' || command -v gs >/dev/null; then echo "ERROR: ghostscript must not be present in this image"; exit 1; fi # buildkit |
| COPY /usr/local/sbin/thpoff /usr/local/sbin # buildkit |
| COPY /usr/lib/libjemalloc.so /usr/lib # buildkit |
| COPY /usr/local/bin/jhead /usr/local/bin # buildkit |
| COPY /usr/local/bin/oxipng /usr/local/bin # buildkit |
| RUN |4 DATESTAMP=20261102 DEBIAN_RELEASE=trixie PG_MAJOR=18 PG_MAJOR_OLD=15 /bin/sh -c cd /tmp && gem fetch pups --version 1.4.0 && echo "5809731d6f4819defe1aac694e614c4b3d9958b5f378a70edf761f3808877052 pups-1.4.0.gem" | sha256sum -c && gem install --local --force pups-1.4.0.gem && rm pups-1.4.0.gem && mkdir -p /pups/bin/ && ln -s /usr/local/bin/pups /pups/bin/pups # buildkit |
| RUN |4 DATESTAMP=20261102 DEBIAN_RELEASE=trixie PG_MAJOR=18 PG_MAJOR_OLD=15 /bin/sh -c rm -f /etc/service # buildkit |
| COPY etc/ /etc # buildkit |
| COPY sbin/ /sbin # buildkit |
| COPY nodesource-repo.gpg.key /usr/share/keyrings/nodesource.asc # buildkit |
| RUN |4 DATESTAMP=20261102 DEBIAN_RELEASE=trixie PG_MAJOR=18 PG_MAJOR_OLD=15 /bin/sh -c printf 'Types: deb\nURIs: https://deb.nodesource.com/node_22.x\nSuites: nodistro\nComponents: main\nSigned-By: /usr/share/keyrings/nodesource.asc\n' > /etc/apt/sources.list.d/nodesource.sources && printf 'Package: nodejs\nPin: origin deb.nodesource.com\nPin-Priority: 600\n' > /etc/apt/preferences.d/nodejs && echo "debconf debconf/frontend select Teletype" | debconf-set-selections; apt-get -y update && DEBIAN_FRONTEND=noninteractive apt-get -y install cmake g++ pkg-config patch libtool libxslt-dev libcurl4-openssl-dev libssl-dev libyaml-dev libxml2-dev libreadline-dev libunwind-dev nodejs # buildkit |
| RUN |4 DATESTAMP=20261102 DEBIAN_RELEASE=trixie PG_MAJOR=18 PG_MAJOR_OLD=15 /bin/sh -c npm install -g pnpm@10 # buildkit |
| ARG DISCOURSE_BRANCH=main |
| RUN |5 DATESTAMP=20261102 DEBIAN_RELEASE=trixie PG_MAJOR=18 PG_MAJOR_OLD=15 DISCOURSE_BRANCH=main /bin/sh -c install -dm 0755 -o discourse -g discourse /var/www/discourse && sudo -u discourse git clone --branch $DISCOURSE_BRANCH --filter=tree:0 https://github.com/discourse/discourse.git /var/www/discourse # buildkit |
| ENV RAILS_ENV=production |
| RUN |5 DATESTAMP=20261102 DEBIAN_RELEASE=trixie PG_MAJOR=18 PG_MAJOR_OLD=15 DISCOURSE_BRANCH=main /bin/sh -c cd /var/www/discourse && sudo -u discourse bundle config --local deployment true && sudo -u discourse bundle config --local path ./vendor/bundle && sudo -u discourse bundle config --local without test development && sudo -u discourse bundle install --jobs $(nproc --ignore=1) && find /var/www/discourse/vendor/bundle -name cache -not -path '*/gems/*' -type d -exec rm -rf {} + && find /var/www/discourse/vendor/bundle -name tmp -type d -exec rm -rf {} + # buildkit |
| RUN |5 DATESTAMP=20261102 DEBIAN_RELEASE=trixie PG_MAJOR=18 PG_MAJOR_OLD=15 DISCOURSE_BRANCH=main /bin/sh -c cd /var/www/discourse && sudo -u discourse /bin/bash -c 'pnpm install --frozen-lockfile --package-import-method hardlink' # buildkit |
| ARG DISABLE_LETSENCRYPT=1 |
| ARG LANG=en_US.UTF-8 |
| ARG LANGUAGE=en_US.UTF-8 |
| ARG LC_ALL=en_US.UTF-8 |
| ARG RAILS_ENV=production |
| ARG RUBY_GC_HEAP_FREE_SLOTS_GOAL_RATIO=0.22 |
| ARG RUBY_GC_HEAP_FREE_SLOTS_MIN_RATIO=0.11 |
| ARG RUBY_GC_HEAP_GROWTH_MAX_SLOTS=40000 |
| ARG RUBY_GC_HEAP_INIT_SLOTS=400000 |
| ARG RUBY_GC_HEAP_OLDOBJECT_LIMIT_FACTOR=1.5 |
| ARG UNICORN_SIDEKIQS=1 |
| ARG UNICORN_WORKERS=3 |
| ENV DISABLE_LETSENCRYPT=1 RAILS_ENV=production RUBY_GC_HEAP_GROWTH_MAX_SLOTS=40000 RUBY_GC_HEAP_INIT_SLOTS=400000 RUBY_GC_HEAP_OLDOBJECT_LIMIT_FACTOR=1.5 UNICORN_SIDEKIQS=1 UNICORN_WORKERS=3 |
| RUN |12 DISABLE_LETSENCRYPT=1 LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8 LC_ALL=en_US.UTF-8 RAILS_ENV=production RUBY_GC_HEAP_FREE_SLOTS_GOAL_RATIO=0.22 RUBY_GC_HEAP_FREE_SLOTS_MIN_RATIO=0.11 RUBY_GC_HEAP_GROWTH_MAX_SLOTS=40000 RUBY_GC_HEAP_INIT_SLOTS=400000 RUBY_GC_HEAP_OLDOBJECT_LIMIT_FACTOR=1.5 UNICORN_SIDEKIQS=1 UNICORN_WORKERS=3 /bin/sh -c cat /temp-config.yaml | /usr/local/bin/pups --skip-tags=precompile,migrate,db --stdin # buildkit |
| CMD ["/sbin/boot"] |
Details
2026-11-08 20:06:01 +00:00
Versions (1)
View all
Container
2
OCI / Docker
linux/amd64
1.3 GiB
v2026.10.0
2026-11-08