2018-10-02 22:38:34 +02:00
|
|
|
## This base image is for running latest lbrycrdd
|
|
|
|
# For some reason I may switch this image over to Alpine when I can RCA why it won't start.
|
|
|
|
FROM ubuntu:18.04
|
|
|
|
MAINTAINER chamunks [at] gmail [dot] com
|
|
|
|
|
2018-10-03 00:05:03 +02:00
|
|
|
RUN adduser lbrycrdd --gecos GECOS --shell /bin/bash --disabled-password --home /data/ && \
|
2018-10-02 23:31:32 +02:00
|
|
|
apt-get update && \
|
|
|
|
apt-get -y install unzip wget && \
|
|
|
|
apt-get autoclean -y && \
|
2018-10-03 00:08:07 +02:00
|
|
|
rm -rf /var/lib/apt/lists/* && \
|
|
|
|
mkdir -p /etc/lbrycrdd && \
|
|
|
|
chown -R 1000:1000 /etc/lbrycrdd
|
2018-10-02 22:38:34 +02:00
|
|
|
|
|
|
|
RUN wget -O /usr/bin/lbrycrd-linux.zip https://github.com/lbryio/lbrycrd/releases/download/v0.12.2.2/lbrycrd-linux.zip && \
|
|
|
|
cd /usr/bin/ && \
|
|
|
|
unzip lbrycrd-linux.zip && \
|
2018-10-02 23:40:11 +02:00
|
|
|
rm lbrycrd-linux.zip && \
|
|
|
|
chmod +x lbrycrdd lbrycrd-cli lbrycrd-tx
|
2018-10-02 22:38:34 +02:00
|
|
|
|
2018-10-02 23:37:23 +02:00
|
|
|
ADD start.sh /usr/local/bin/start
|
|
|
|
ADD docker-entrypoint.sh /usr/local/bin/docker-entrypoint
|
2018-10-02 22:38:34 +02:00
|
|
|
|
|
|
|
USER lbrycrdd
|
|
|
|
|
2018-10-03 00:26:46 +02:00
|
|
|
RUN mkdir -p /data/
|
2018-10-03 00:05:03 +02:00
|
|
|
|
2018-10-02 22:38:34 +02:00
|
|
|
VOLUME /data/
|
|
|
|
VOLUME /etc/lbrycrdd/
|
|
|
|
|
|
|
|
## Exposing daemon port and RPC port
|
|
|
|
EXPOSE 9245 9246
|
|
|
|
|
|
|
|
## For now this is a placeholder that executes /bin/bash on `docker exec`
|
2018-10-03 00:05:03 +02:00
|
|
|
# ENTRYPOINT ["docker-entrypoint"]
|
2018-10-02 22:38:34 +02:00
|
|
|
|
|
|
|
CMD ["start"]
|