2024-05-15 00:13:03 +02:00
|
|
|
# Docker image to facilitate building Element Desktop's native bits using a glibc version with broader compatibility
|
|
|
|
FROM rust:buster
|
2020-05-07 15:45:29 +02:00
|
|
|
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
|
2023-03-30 14:54:45 +02:00
|
|
|
RUN curl --proto "=https" -L https://yarnpkg.com/latest.tar.gz | tar xvz && mv yarn-* /yarn && ln -s /yarn/bin/yarn /usr/bin/yarn
|
2020-05-07 15:45:29 +02:00
|
|
|
RUN apt-get -qq update && apt-get -qq dist-upgrade && \
|
2024-05-15 00:13:03 +02:00
|
|
|
apt-get -qq install --no-install-recommends \
|
2022-04-22 15:40:16 +02:00
|
|
|
# tclsh is required for building SQLite as part of SQLCipher
|
2024-05-15 00:13:03 +02:00
|
|
|
tcl \
|
2023-12-18 16:38:42 +01:00
|
|
|
# libsecret-1-dev is required even for prebuild keytar
|
|
|
|
libsecret-1-dev \
|
2022-05-27 10:15:47 +02:00
|
|
|
# Used by seshat (when not SQLCIPHER_STATIC) \
|
|
|
|
libsqlcipher-dev && \
|
2020-05-07 15:45:29 +02:00
|
|
|
apt-get purge -y --auto-remove && rm -rf /var/lib/apt/lists/*
|
2024-05-15 00:13:03 +02:00
|
|
|
RUN ln -s /usr/bin/python3 /usr/bin/python & ln -s /usr/bin/pip3 /usr/bin/pip
|
2020-05-07 15:45:29 +02:00
|
|
|
|
|
|
|
ENV DEBUG_COLORS true
|
|
|
|
ENV FORCE_COLOR true
|
|
|
|
|
2024-05-15 00:13:03 +02:00
|
|
|
ENV NODE_VERSION 18.19.0
|
|
|
|
ARG TARGETOS
|
|
|
|
ARG TARGETARCH
|
|
|
|
COPY setup.sh /setup.sh
|
|
|
|
RUN /setup.sh
|