More re-organization and removed duplicate RUN

This commit is contained in:
Leopere 2018-10-03 14:29:00 -04:00
parent 681becc7bf
commit a1bce599d5

View file

@ -3,8 +3,10 @@ FROM ubuntu:18.04
MAINTAINER chamunks [at] gmail [dot] com MAINTAINER chamunks [at] gmail [dot] com
ADD chainqueryconfig.toml ~/chainqueryconfig.toml ADD chainqueryconfig.toml ~/chainqueryconfig.toml
ADD start.sh /usr/local/bin/start
ADD docker-entrypoint.sh /usr/local/bin/docker-entrypoint
RUN RUN adduser chainquery --gecos GECOS --shell /bin/bash --disabled-password --home /data/ && \ RUN adduser chainquery --gecos GECOS --shell /bin/bash --disabled-password --home /data/ && \
apt-get update && \ apt-get update && \
apt-get -y install unzip wget && \ apt-get -y install unzip wget && \
apt-get autoclean -y && \ apt-get autoclean -y && \
@ -15,9 +17,6 @@ RUN wget -O /usr/bin/chainquery.zip https://github.com/lbryio/chainquery/release
unzip chainquery.zip && \ unzip chainquery.zip && \
rm chainquery.zip rm chainquery.zip
ADD start.sh /usr/local/bin/start
ADD docker-entrypoint.sh /usr/local/bin/docker-entrypoint
USER lbrycrdd USER lbrycrdd
## Expose Chainquery API port ## Expose Chainquery API port