Committing base Dockerfile for lbrycrdd
This commit should contain a working lbrycrdd inside of a Docker container. The idea is that this should work by default and store a few things on the host system for persistence.
This commit is contained in:
parent
f7a136808d
commit
08f2337f5f
1 changed files with 32 additions and 0 deletions
32
lbrycrd/Dockerfile
Normal file
32
lbrycrd/Dockerfile
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
## 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
|
||||||
|
|
||||||
|
RUN adduser lbrycrdd --gecos GECOS --shell /bin/bash/ --disabled-password --home /data/ && \
|
||||||
|
apt update && \
|
||||||
|
apt -y install unzip wget && \
|
||||||
|
apt autoclean -y && \
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
|
||||||
|
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 && \
|
||||||
|
rm lbrycrd-linux.zip
|
||||||
|
|
||||||
|
ADD start.sh /usr/bin/start
|
||||||
|
ADD docker-entrypoint.sh /usr/bin/docker-entrypoint
|
||||||
|
|
||||||
|
USER lbrycrdd
|
||||||
|
|
||||||
|
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`
|
||||||
|
ENTRYPOINT ["docker-entrypoint"]
|
||||||
|
|
||||||
|
CMD ["start"]
|
Loading…
Reference in a new issue