lbry-docker/chainquery/Dockerfile

31 lines
915 B
Text
Raw Normal View History

## This base image is for running latest chainquery
2018-10-16 09:28:03 +02:00
FROM ubuntu:18.04 as prep
LABEL MAINTAINER="leopere [at] nixc [dot] us"
2018-10-16 09:28:03 +02:00
RUN apt-get update && \
apt-get -y install unzip && \
apt-get autoclean -y && \
rm -rf /var/lib/apt/lists/*
2018-10-16 09:28:03 +02:00
ADD --chown=1000:1000 https://github.com/lbryio/chainquery/releases/download/v1.1.2/chainquery_1.1.2_Linux_x86_64.zip /download
RUN cd /download/ && \
unzip chainquery_1.1.2_Linux_x86_64.zip && \
rm chainquery_1.1.2_Linux_x86_64.zip
## Switch to Alpine eventually we might need to compile in Alpine for this.
FROM ubuntu:18.04 as app
RUN adduser chainquery --gecos GECOS --shell /bin/bash --disabled-password --home /home/chainquery
COPY chainqueryconfig.toml /data/chainqueryconfig.toml
COPY start.sh /usr/local/bin/start
COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint
2018-10-03 20:30:18 +02:00
USER chainquery
## Expose Chainquery API port
2018-10-16 09:28:03 +02:00
EXPOSE 6300
CMD ["start"]