containers/element-web/Dockerfile

20 lines
533 B
Docker

ARG ELEMENT_VER=v1.11.23
FROM debian:11 AS builder
ARG ELEMENT_VER
RUN apt-get update && apt-get install -y nodejs curl git
ADD custom_config.js /
RUN cd / && curl -k -L "https://raw.githubusercontent.com/vector-im/element-web/${ELEMENT_VER}/config.sample.json" > config.sample.json \
&& git clone --depth=1 https://github.com/aaronraimist/element-themes \
&& node custom_config.js | tee config.json
FROM docker.io/vectorim/element-web:${ELEMENT_VER}
ARG ELEMENT_VER
COPY --from=builder /config.json /app/config.json