postulo (sha256:842db1f8a332092bbadab91c74fedc6db11423d84fb7c56062170239b94dc4cf)

Published 2026-09-25 14:05:18 +00:00 by postulo-ci in Postulo/postulo

Installation

docker pull source.tiagoagueda.com/postulo/postulo@sha256:842db1f8a332092bbadab91c74fedc6db11423d84fb7c56062170239b94dc4cf
sha256:842db1f8a332092bbadab91c74fedc6db11423d84fb7c56062170239b94dc4cf

Image layers

# debian.sh --arch 'amd64' out/ 'bookworm' '@1789689600'
ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends ca-certificates netbase tzdata ; rm -rf /var/lib/apt/lists/* # buildkit
ENV PYTHON_VERSION=3.14.7
ENV PYTHON_SHA256=3b48dac8fb59f62eaa67ac83c1eb12bda1b7a08406dd286e252c11a66be27f81
RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends dpkg-dev g++ gcc gnupg libbluetooth-dev libbz2-dev libc6-dev libdb-dev libffi-dev libgdbm-dev liblzma-dev libncursesw5-dev libreadline-dev libsqlite3-dev libssl-dev libzstd-dev make tk-dev uuid-dev wget xz-utils zlib1g-dev ; wget -O python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz"; echo "$PYTHON_SHA256 *python.tar.xz" | sha256sum -c -; mkdir -p /usr/src/python; tar --extract --directory /usr/src/python --strip-components=1 --file python.tar.xz; rm python.tar.xz; cd /usr/src/python; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; ./configure --build="$gnuArch" --enable-loadable-sqlite-extensions --enable-optimizations --enable-option-checking=fatal --enable-shared $(test "${gnuArch%%-*}" != 'riscv64' && echo '--with-lto') --with-ensurepip ; nproc="$(nproc)"; EXTRA_CFLAGS="$(dpkg-buildflags --get CFLAGS)"; LDFLAGS="$(dpkg-buildflags --get LDFLAGS)"; LDFLAGS="${LDFLAGS:-} -Wl,--strip-all"; arch="$(dpkg --print-architecture)"; arch="${arch##*-}"; case "$arch" in amd64|arm64) EXTRA_CFLAGS="${EXTRA_CFLAGS:-} -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer"; ;; i386) ;; *) EXTRA_CFLAGS="${EXTRA_CFLAGS:-} -fno-omit-frame-pointer"; ;; esac; make -j "$nproc" "EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" "LDFLAGS=${LDFLAGS:-}" ; rm python; make -j "$nproc" "EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" "LDFLAGS=${LDFLAGS:-} -Wl,-rpath='\$\$ORIGIN/../lib'" python ; make install; cd /; rm -rf /usr/src/python; find /usr/local -depth \( \( -type d -a \( -name test -o -name tests -o -name idle_test \) \) -o \( -type f -a \( -name '*.pyc' -o -name '*.pyo' -o -name 'libpython*.a' \) \) \) -exec rm -rf '{}' + ; ldconfig; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark; 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 -rt dpkg-query --search | awk 'sub(":$", "", $1) { print $1 }' | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; rm -rf /var/lib/apt/lists/*; export PYTHONDONTWRITEBYTECODE=1; python3 --version; pip3 --version # buildkit
RUN /bin/sh -c set -eux; for src in idle3 pip3 pydoc3 python3 python3-config; do dst="$(echo "$src" | tr -d 3)"; [ -s "/usr/local/bin/$src" ]; [ ! -e "/usr/local/bin/$dst" ]; ln -svT "$src" "/usr/local/bin/$dst"; done # buildkit
CMD ["python3"]
COPY /uv /usr/local/bin/uv # buildkit
ENV PYTHONUNBUFFERED=1 PYTHONDONTWRITEBYTECODE=1 POSTULO_PLUGINS_DIR=/app/data/plugins UV_COMPILE_BYTECODE=1 UV_LINK_MODE=copy UV_PROJECT_ENVIRONMENT=/app/.venv PATH=/app/.venv/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin DJANGO_SETTINGS_MODULE=postulo.config.settings.prod POSTULO_MEDIA_ROOT=/app/data/media POSTULO_BACKUP_DIR=/app/data/backups POSTULO_GEOLOCATIONS_DIR=/app/data/geonames POSTULO_STATIC_ROOT=/app/staticfiles
ARG POSTULO_EXTRA_APT_PACKAGES=
RUN |1 POSTULO_EXTRA_APT_PACKAGES= /bin/sh -c apt-get update && apt-get upgrade -y && apt-get install -y --no-install-recommends libpango-1.0-0 libpangoft2-1.0-0 libharfbuzz0b libharfbuzz-subset0 libfontconfig1 fonts-dejavu-core fonts-noto-core ca-certificates curl && if [ -n "$POSTULO_EXTRA_APT_PACKAGES" ]; then apt-get install -y --no-install-recommends $POSTULO_EXTRA_APT_PACKAGES; fi && install -d /usr/share/postgresql-common/pgdg && curl -fsSL -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc 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 bookworm-pgdg main" > /etc/apt/sources.list.d/pgdg.list && apt-get update && apt-get install -y --no-install-recommends postgresql-client-17 && rm -rf /var/lib/apt/lists/* # buildkit
WORKDIR /app
COPY /app/.venv ./.venv # buildkit
COPY /app/src ./src # buildkit
COPY manage.py ./ # buildkit
COPY /build/src/postulo/static/css/app.css ./src/postulo/static/css/app.css # buildkit
RUN |1 POSTULO_EXTRA_APT_PACKAGES= /bin/sh -c POSTULO_SECRET_KEY="$(python -c 'import secrets; print(secrets.token_urlsafe(64))')" POSTULO_ALLOWED_HOSTS=localhost python manage.py collectstatic --noinput --clear # buildkit
RUN |1 POSTULO_EXTRA_APT_PACKAGES= /bin/sh -c rm -rf /usr/local/lib/python3.14/site-packages/pip /usr/local/lib/python3.14/site-packages/pip-*.dist-info && if /usr/local/bin/python -c "import pip" 2>/dev/null; then echo "pip is still importable by the base interpreter" >&2; exit 1; fi && uv --version # buildkit
COPY docker/entrypoint.sh /usr/local/bin/postulo-entrypoint # buildkit
RUN |1 POSTULO_EXTRA_APT_PACKAGES= /bin/sh -c chmod +x /usr/local/bin/postulo-entrypoint && useradd --system --create-home --uid 1000 postulo && mkdir -p /app/data/media /app/data/backups /app/data/plugins && chown -R postulo:postulo /app/data # buildkit
USER postulo
VOLUME [/app/data]
EXPOSE [8000/tcp]
HEALTHCHECK {Test:[CMD-SHELL curl -fsS http://127.0.0.1:8000/healthz || exit 1] Interval:30s Timeout:5s StartPeriod:20s StartInterval:0s Retries:3}
ENV GUNICORN_CMD_ARGS=--timeout 120 --max-requests 500 --max-requests-jitter 50
ENTRYPOINT ["postulo-entrypoint"]
CMD ["gunicorn" "postulo.config.wsgi:application" "--bind" "0.0.0.0:8000" "--workers" "3" "--access-logfile" "-" "--access-logformat" "%(h)s %(l)s %(u)s %(t)s \"%(r)s\" %(s)s %(b)s \"%(f)s\" \"%(a)s\" request=%({x-request-id}o)s" "--error-logfile" "-"]
Details
Container
2026-09-25 14:05:18 +00:00
0
OCI / Docker
linux/amd64
173 MiB
Versions (9) View all
0.3.0-dev.e143fc8 2026-09-25
dev 2026-09-25
0.3.0-dev.d564639 2026-09-25
0.3.0-dev.b5c9e8a 2026-09-25
0.3.0-dev.2739b96 2026-09-25