Dockerfile 390 B

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