Browse Source

matrix: details

Guilhem Saurel 6 years ago
parent
commit
d5b6e74423
1 changed files with 4 additions and 4 deletions
  1. 4 4
      matrix/Dockerfile

+ 4 - 4
matrix/Dockerfile

@@ -4,8 +4,8 @@ WORKDIR /usr/share/nginx/html
 RUN apk add --no-cache curl
 
 ARG RIOT_VERSION
-ARG SYNAPSE_SERVER_NAME
+RUN curl -sSL https://github.com/vector-im/riot-web/releases/download/$RIOT_VERSION/riot-$RIOT_VERSION.tar.gz \
+  | tar -xz --strip-components=1
 
-RUN curl -sSL https://github.com/vector-im/riot-web/releases/download/$RIOT_VERSION/riot-$RIOT_VERSION.tar.gz | tar -xz
-RUN mv riot-$RIOT_VERSION/* .
-RUN sed "/default_hs_url/s/https:\/\/matrix.org/\/\/$SYNAPSE_SERVER_NAME/" config.sample.json > config.json
+ARG SYNAPSE_SERVER_NAME
+RUN sed "/default_hs_url/s=https://matrix.org=//$SYNAPSE_SERVER_NAME=" config.sample.json > config.json