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

fix download URL

parent 6ee6124b
No related branches found
No related tags found
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') | 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 \
......
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