containers/element-web/Dockerfile
Peter Cai f66636aa07
All checks were successful
/ build-image (push) Successful in 1m25s
element-web: Uprev to v1.11.58
2024-02-15 15:23:52 -05:00

20 lines
533 B
Docker

ARG ELEMENT_VER=v1.11.58
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