postulo (sha256:083272f196a65e8c8396afcbbf302e74a40b46e33a23b854b9833f2306529547)
Installation
docker pull source.tiagoagueda.com/postulo/postulo@sha256:083272f196a65e8c8396afcbbf302e74a40b46e33a23b854b9833f2306529547sha256:083272f196a65e8c8396afcbbf302e74a40b46e33a23b854b9833f2306529547Image layers
| # debian.sh --arch 'amd64' out/ 'bookworm' '@1793827419' |
| ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
| ENV LANG=C.UTF-8 |
| 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.10 |
| ENV PYTHON_SHA256=de414a57119abef52784d8993e341d53aed635fc2b05c2607d9f98a2c5b72032 |
| 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_ESCO_DIR=/app/data/esco POSTULO_STATIC_ROOT=/app/staticfiles |
| ARG POSTULO_EXTRA_APT_PACKAGES= |
| COPY docker/apt.postgresql.org.asc /tmp/apt.postgresql.org.asc # buildkit |
| ARG POSTULO_APT_REFRESH=2026-11-12 |
| RUN |2 POSTULO_EXTRA_APT_PACKAGES= POSTULO_APT_REFRESH=2026-11-12 /bin/sh -c echo "Debian's packages as of: ${POSTULO_APT_REFRESH:-whenever this layer was last built}" && 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 libthai0 fonts-dejavu-core fonts-noto-core fonts-noto-cjk 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 && install -m 644 /tmp/apt.postgresql.org.asc /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc && rm /tmp/apt.postgresql.org.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/constraints.txt ./constraints.txt # 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 |
| COPY /build/src/postulo/static/js/app.min.js ./src/postulo/static/js/app.min.js # buildkit |
| RUN |2 POSTULO_EXTRA_APT_PACKAGES= POSTULO_APT_REFRESH=2026-11-12 /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 |2 POSTULO_EXTRA_APT_PACKAGES= POSTULO_APT_REFRESH=2026-11-12 /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 |2 POSTULO_EXTRA_APT_PACKAGES= POSTULO_APT_REFRESH=2026-11-12 /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 /app/data/esco && 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" "-" "--logger-class" "postulo.config.gunicorn_logging.RedactingLogger" "--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
Versions (13)
View all
0.5.0-dev.2b8d3ab
2026-11-12
dev
2026-11-12
0.5.0-dev.b20e038
2026-11-11
0.5.0-dev.f421402
2026-11-11
0.5.0-dev.f0f0b5d
2026-11-11