2018-10-03 20:12:23 +02:00
|
|
|
## This base image is for running latest chainquery
|
2018-10-03 20:17:22 +02:00
|
|
|
FROM ubuntu:18.04
|
2018-10-02 23:22:47 +02:00
|
|
|
MAINTAINER chamunks [at] gmail [dot] com
|
|
|
|
|
2018-10-03 20:43:03 +02:00
|
|
|
ADD chainqueryconfig.toml /data/chainqueryconfig.toml
|
2018-10-03 20:29:00 +02:00
|
|
|
ADD start.sh /usr/local/bin/start
|
|
|
|
ADD docker-entrypoint.sh /usr/local/bin/docker-entrypoint
|
2018-10-03 20:12:23 +02:00
|
|
|
|
2018-10-03 20:29:00 +02:00
|
|
|
RUN adduser chainquery --gecos GECOS --shell /bin/bash --disabled-password --home /data/ && \
|
2018-10-03 20:12:23 +02:00
|
|
|
apt-get update && \
|
|
|
|
apt-get -y install unzip wget && \
|
|
|
|
apt-get autoclean -y && \
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
RUN wget -O /usr/bin/chainquery.zip https://github.com/lbryio/chainquery/releases/download/v1.1.2/chainquery_1.1.2_Linux_x86_64.zip && \
|
|
|
|
cd /usr/bin/ && \
|
|
|
|
unzip chainquery.zip && \
|
2018-10-03 20:47:25 +02:00
|
|
|
rm chainquery.zip && \
|
|
|
|
chown -R 1000:1000 /data && \
|
|
|
|
chmod -R 755 /data
|
2018-10-03 20:12:23 +02:00
|
|
|
|
2018-10-03 20:30:18 +02:00
|
|
|
USER chainquery
|
2018-10-03 20:12:23 +02:00
|
|
|
|
|
|
|
## Expose Chainquery API port
|
|
|
|
EXPOSE 6300 3306
|
|
|
|
|
|
|
|
CMD ["start"]
|