Dockerfile 378 B

1234567891011
  1. FROM nginx:alpine
  2. WORKDIR /usr/share/nginx/html
  3. RUN apk add --no-cache curl
  4. ARG RIOT_VERSION
  5. ARG SYNAPSE_SERVER_NAME
  6. RUN curl -sSL https://github.com/vector-im/riot-web/releases/download/$RIOT_VERSION/riot-$RIOT_VERSION.tar.gz | tar -xz
  7. RUN mv riot-$RIOT_VERSION/* .
  8. RUN sed "/default_hs_url/s/https:\/\/matrix.org/\/\/$SYNAPSE_SERVER_NAME/" config.sample.json > config.json