fix download URL

pull/1819/head
Gabriel Engel 10 years ago
parent 6ee6124b57
commit b47e50e91c
  1. 2
      .docker/dockerfiles/latest/Dockerfile

@ -18,7 +18,7 @@ WORKDIR /app
RUN URL="https://github.com/RocketChat/Rocket.Chat/releases/latest" \
&& FILE="/rocket.chat.tgz" \
&& HEADER=$(curl -I -s "$URL" | grep -Fi Location: | sed -En 's/.*(https?:\/\/[a-zA-Z0-9\/.-_]*).*$/\1/p') | sed 's/\/tag\//\/download\//' \
&& HEADER=$(curl -I -s "$URL" | grep -Fi Location: | sed -En 's/.*(https?:\/\/[a-zA-Z0-9\/.-_]*).*$/\1/p' | sed 's/\/tag\//\/download\//' ) \
&& curl -fSL "$HEADER$FILE" -o rocket.chat.tgz \
&& tar zxvf ./rocket.chat.tgz \
&& rm ./rocket.chat.tgz \

Loading…
Cancel
Save