lbry-docker/lbrycrd/Dockerfile

46 lines
1.4 KiB
Text
Raw Normal View History

2018-10-11 02:17:32 +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
2018-10-16 09:30:13 +02:00
LABEL MAINTAINER="leopere [at] nixc [dot] us"
RUN adduser lbrycrdd --gecos GECOS --shell /bin/bash --disabled-password --home /data/ && \
apt-get update && \
apt-get -y install unzip wget curl && \
apt-get autoclean -y && \
rm -rf /var/lib/apt/lists/* && \
mkdir -p /etc/lbrycrdd && \
chown -R 1000:1000 /etc/lbrycrdd
## TODO: Consider adding debugpaste or variant
# RUN wget -O /usr/bin/debugpaste https://github.com/nixc-us/debugpaste-it/raw/master/bin/debugpaste_64 && \
# chmod +x /usr/bin/debugpaste
2018-10-07 02:13:48 +02:00
2018-10-11 02:24:51 +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
COPY debugpaste-it.sh /usr/local/bin/debugpaste-it
COPY start.sh /usr/local/bin/start
COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint
COPY healthcheck.sh /usr/local/bin/healthcheck
USER lbrycrdd
2018-10-03 00:26:46 +02:00
RUN mkdir -p /data/
VOLUME /data/
VOLUME /etc/lbrycrdd/
## TODO: Implement healthcheck.
# HEALTHCHECK ["healthcheck"]
## Exposing daemon port and RPC port
EXPOSE 9245 9246
## For now this is a placeholder that executes /bin/bash on `docker exec`
# ENTRYPOINT ["docker-entrypoint"]
CMD ["start"]