|
|
|
@ -72,8 +72,18 @@ ENV DEBIAN_FRONTEND=noninteractive \ |
|
|
|
# Debian Trixie uses libpq v17 |
|
|
|
PQ_LIB_DIR="/usr/local/musl/pq17/lib" |
|
|
|
{%- endif %} |
|
|
|
|
|
|
|
{% if base == "debian" %} |
|
|
|
|
|
|
|
# Force the install of an older MariaDB client library to prevent Diesel from |
|
|
|
# misreading result sets with affected MariaDB Connector/C releases. |
|
|
|
# See https://github.com/dani-garcia/vaultwarden/issues/6416 |
|
|
|
# See https://github.com/dani-garcia/vaultwarden/issues/7268 |
|
|
|
RUN echo "deb http://snapshot.debian.org/archive/debian/20250707T084701Z/ trixie main" > /etc/apt/sources.list.d/mariadb-snapshot.list && \ |
|
|
|
echo "Acquire::Check-Valid-Until false;" > /etc/apt/apt.conf.d/allow-snapshot && \ |
|
|
|
echo 'Package: libmariadb* mariadb*' > /etc/apt/preferences.d/mariadb-snapshot && \ |
|
|
|
echo 'Pin: origin "snapshot.debian.org"' >> /etc/apt/preferences.d/mariadb-snapshot && \ |
|
|
|
echo 'Pin-Priority: 1001' >> /etc/apt/preferences.d/mariadb-snapshot |
|
|
|
|
|
|
|
# Install clang && xx-c-essentials to get `xx-cargo` working |
|
|
|
# Install pkg-config to allow amd64 builds to find all libraries |
|
|
|
# Install git so build.rs can determine the correct version |
|
|
|
@ -193,6 +203,15 @@ ENV ROCKET_PROFILE="release" \ |
|
|
|
# Create data folder and Install needed libraries |
|
|
|
RUN mkdir /data && \ |
|
|
|
{% if base == "debian" %} |
|
|
|
# Force the install of an older MariaDB client library to prevent Diesel from |
|
|
|
# misreading result sets with affected MariaDB Connector/C releases. |
|
|
|
# See https://github.com/dani-garcia/vaultwarden/issues/6416 |
|
|
|
# See https://github.com/dani-garcia/vaultwarden/issues/7268 |
|
|
|
echo "deb http://snapshot.debian.org/archive/debian/20250707T084701Z/ trixie main" > /etc/apt/sources.list.d/mariadb-snapshot.list && \ |
|
|
|
echo "Acquire::Check-Valid-Until false;" > /etc/apt/apt.conf.d/allow-snapshot && \ |
|
|
|
echo 'Package: libmariadb* mariadb*' > /etc/apt/preferences.d/mariadb-snapshot && \ |
|
|
|
echo 'Pin: origin "snapshot.debian.org"' >> /etc/apt/preferences.d/mariadb-snapshot && \ |
|
|
|
echo 'Pin-Priority: 1001' >> /etc/apt/preferences.d/mariadb-snapshot && \ |
|
|
|
apt-get update && apt-get install -y \ |
|
|
|
--no-install-recommends \ |
|
|
|
ca-certificates \ |
|
|
|
|