mirror of
https://github.com/element-hq/element-desktop.git
synced 2026-02-14 09:43:10 -05:00
25 lines
838 B
Docker
25 lines
838 B
Docker
# 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.
|
|
FROM rust:bullseye@sha256:3ebcc2d6d71fb93a2967e35723902c51dd87dbb36f66f795a58d7921553fbcd4
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
RUN apt-get -qq update && apt-get -y -qq dist-upgrade && \
|
|
apt-get -y -qq install --no-install-recommends \
|
|
# tclsh is required for building SQLite as part of SQLCipher
|
|
tcl \
|
|
# Used by seshat (when not SQLCIPHER_STATIC) \
|
|
libsqlcipher-dev && \
|
|
apt-get purge -y --auto-remove && rm -rf /var/lib/apt/lists/*
|
|
RUN ln -s /usr/bin/python3 /usr/bin/python & ln -s /usr/bin/pip3 /usr/bin/pip
|
|
|
|
ENV DEBUG_COLORS=true
|
|
ENV FORCE_COLOR=true
|
|
|
|
WORKDIR /project
|
|
|
|
ARG TARGETOS
|
|
ARG TARGETARCH
|
|
COPY .node-version dockerbuild/setup.sh /
|
|
RUN /setup.sh
|