Files
khb_microservices/deploy/Dockerfile.passwords_backupper
2026-10-22 20:46:23 +03:00

16 lines
1.2 KiB
Docker
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Образ passwords_backupper: общий образ monorepo + инструменты резервного копирования.
# Собирается deploy.sh на сервере поверх khb-microservices:<tag> (docker build --build-arg BASE_IMAGE=... - < этот файл), имя khb-passwords-backupper:<tag>.
# 7z (p7zip-full), age, sqlite3, pg_dump/pg_restore 16 (как у PostgreSQL Infisical; в Debian 12 только 15, поэтому репозиторий PGDG), Bitwarden CLI (bw).
ARG BASE_IMAGE
FROM ${BASE_IMAGE}
USER root
RUN apt-get update \
&& apt-get install -y --no-install-recommends gnupg \
&& install -d /usr/share/postgresql-common/pgdg \
&& curl -fsSL https://www.postgresql.org/media/keys/ACCC4CF8.asc -o /usr/share/postgresql-common/pgdg/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-16 p7zip-full age sqlite3 \
&& npm install -g @bitwarden/cli@2026.10.0 \
&& rm -rf /var/lib/apt/lists/*