Make healthcheck script executable

This commit is contained in:
Dan Garthwaite 2019-10-10 09:29:01 -04:00 committed by Leopere
parent 84b39abeb1
commit fced928089

View file

@ -10,11 +10,8 @@ WORKDIR /
SHELL ["/bin/bash", "-o", "pipefail", "-c"] SHELL ["/bin/bash", "-o", "pipefail", "-c"]
COPY ./stuff/start.sh start COPY ./stuff/start.sh start
COPY ./stuff/healthcheck.sh healthcheck COPY ./stuff/healthcheck.sh healthcheck
RUN curl --progress-bar -L -o /chainquery.zip \ RUN curl --progress-bar -L -o /chainquery https://build.lbry.io/chainquery/branch-master/chainquery && \
$(curl -s https://api.github.com/repos/lbryio/chainquery/releases | \ chmod +x /chainquery /start /healthcheck
grep -F 'Linux_x86_64.zip' | grep download | head -n 1 | cut -d'"' -f4) && \
unzip /chainquery.zip && \
rm /chainquery.zip
FROM ubuntu:18.04 as app FROM ubuntu:18.04 as app
ADD https://raw.githubusercontent.com/lbryio/chainquery/master/config/default/chainqueryconfig.toml /etc/lbry/chainqueryconfig.toml.orig ADD https://raw.githubusercontent.com/lbryio/chainquery/master/config/default/chainqueryconfig.toml /etc/lbry/chainqueryconfig.toml.orig