simplified, removed debug and fixed curl

This commit is contained in:
Leopere 2018-11-04 12:01:09 -05:00
parent 2cfc0abf25
commit 5c6e5653c5

View file

@ -8,13 +8,11 @@ RUN apt-get update && \
rm -rf /var/lib/apt/lists/* && \
mkdir /download
RUN curl -o /download/chainquery.zip $(curl -s https://api.github.com/repos/lbryio/chainquery/releases | fgrep 'Linux_x86_64.zip' | grep download | head -n 1 | cut -d'"' -f4)
RUN curl -L -o /download/chainquery.zip $(curl -s https://api.github.com/repos/lbryio/chainquery/releases | fgrep 'Linux_x86_64.zip' | grep download | head -n 1 | cut -d'"' -f4)
## I really want to use this instead of all the curl stuff at one point.
# ADD --chown=1000:1000 https://github.com/lbryio/chainquery/releases/download/latest/chainquery_latest_Linux_x86_64.zip /download
RUN cd /download && \
ls -lAh /download && pwd && \
unzip -o /download/chainquery.zip -d /download/ && \
RUN unzip /download/chainquery.zip -d /download/ && \
rm chainquery.zip
## Switch to Alpine eventually we might need to compile in Alpine for this.