cf64808b82
Removed more weight (LICENSES and README.md files)
25 lines
789 B
Docker
25 lines
789 B
Docker
## This base image is for running latest chainquery
|
|
FROM ubuntu:18.04
|
|
MAINTAINER chamunks [at] gmail [dot] com
|
|
|
|
ADD chainqueryconfig.toml /data/chainqueryconfig.toml
|
|
ADD start.sh /usr/local/bin/start
|
|
ADD docker-entrypoint.sh /usr/local/bin/docker-entrypoint
|
|
|
|
RUN adduser chainquery --gecos GECOS --shell /bin/bash --disabled-password --home /data/ && \
|
|
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 && \
|
|
rm chainquery.zip LICENSES README.md
|
|
|
|
USER chainquery
|
|
|
|
## Expose Chainquery API port
|
|
EXPOSE 6300 3306
|
|
|
|
CMD ["start"]
|