Skip to content
Snippets Groups Projects
Commit 6ee6124b authored by Gabriel Engel's avatar Gabriel Engel
Browse files

fix download URL

parent 54aaead2
No related merge requests found
......@@ -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') \
&& 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 \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment