2024-10-30 10:41:55 +00:00
|
|
|
# Docker image to facilitate building Element Desktop's native bits using a glibc version (2.31)
|
|
|
|
|
# with broader compatibility, down to Debian bullseye & Ubuntu focal.
|
2026-03-26 14:39:39 +01:00
|
|
|
|
2026-05-05 14:09:38 +00:00
|
|
|
FROM rust:bullseye@sha256:85f9d38ab80fa5752a6fd5bff34c953a59ce2c7ccb0d47fb678d3c0300b8a331
|
2020-05-07 14:45:29 +01:00
|
|
|
|
2025-02-28 11:39:31 +00:00
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
2020-05-07 14:45:29 +01:00
|
|
|
|
2024-07-31 15:08:06 +01:00
|
|
|
RUN apt-get -qq update && apt-get -y -qq dist-upgrade && \
|
|
|
|
|
apt-get -y -qq install --no-install-recommends \
|
2022-04-22 14:40:16 +01:00
|
|
|
# tclsh is required for building SQLite as part of SQLCipher
|
2024-05-14 23:13:03 +01:00
|
|
|
tcl \
|
2022-05-27 09:15:47 +01:00
|
|
|
# Used by seshat (when not SQLCIPHER_STATIC) \
|
|
|
|
|
libsqlcipher-dev && \
|
2020-05-07 14:45:29 +01:00
|
|
|
apt-get purge -y --auto-remove && rm -rf /var/lib/apt/lists/*
|
2024-05-14 23:13:03 +01:00
|
|
|
RUN ln -s /usr/bin/python3 /usr/bin/python & ln -s /usr/bin/pip3 /usr/bin/pip
|
2020-05-07 14:45:29 +01:00
|
|
|
|
2025-02-28 11:39:31 +00:00
|
|
|
ENV DEBUG_COLORS=true
|
|
|
|
|
ENV FORCE_COLOR=true
|
2024-05-14 23:13:03 +01:00
|
|
|
|
2024-07-17 13:54:42 +01:00
|
|
|
WORKDIR /project
|
|
|
|
|
|
2024-05-14 23:13:03 +01:00
|
|
|
ARG TARGETOS
|
|
|
|
|
ARG TARGETARCH
|
2025-02-28 10:23:49 +00:00
|
|
|
COPY .node-version dockerbuild/setup.sh /
|
2024-05-14 23:13:03 +01:00
|
|
|
RUN /setup.sh
|