2018-10-02 21:36:13 +02:00
|
|
|
## This base image is for running the latest lbrynet-daemon release.
|
2019-05-01 18:09:13 +02:00
|
|
|
FROM ubuntu:18.04 as prep
|
2018-10-16 09:30:13 +02:00
|
|
|
LABEL MAINTAINER="leopere [at] nixc [dot] us"
|
2019-05-01 18:09:13 +02:00
|
|
|
RUN apt-get update && apt-get -y install unzip curl
|
2018-06-01 02:09:31 +02:00
|
|
|
|
|
|
|
## Add lbrynet
|
2019-05-01 18:09:13 +02:00
|
|
|
ARG VERSION=latest
|
|
|
|
RUN URL=$(curl -s https://api.github.com/repos/lbryio/lbry/releases/$(if [ "${VERSION}" = 'latest' ]; then echo "latest"; else echo "tags/${VERSION}"; fi) | grep browser_download_url | grep lbrynet-linux.zip | cut -d'"' -f4) && echo $URL && curl -L -o /lbrynet.linux.zip $URL
|
2019-04-26 00:54:08 +02:00
|
|
|
|
2019-05-01 18:09:13 +02:00
|
|
|
COPY stuff/start.sh /usr/bin/start
|
|
|
|
COPY stuff/checkmount.sh /usr/bin/checkmount
|
|
|
|
RUN unzip /lbrynet.linux.zip -d /lbrynet/ && \
|
|
|
|
mv /lbrynet/lbrynet /usr/bin && \
|
|
|
|
chmod a+x /usr/bin/checkmount /usr/bin/start /usr/bin/lbrynet
|
2018-10-07 02:24:11 +02:00
|
|
|
|
2019-05-01 18:09:13 +02:00
|
|
|
FROM ubuntu:18.04 as app
|
|
|
|
COPY --from=prep /usr/bin/start /usr/bin/checkmount /usr/bin/lbrynet /usr/bin/
|
|
|
|
RUN adduser lbrynet --gecos GECOS --shell /bin/bash --disabled-password --home /home/lbrynet
|
2018-06-01 02:09:31 +02:00
|
|
|
## Daemon port [Intended for internal use]
|
2018-11-29 16:25:59 +01:00
|
|
|
## LBRYNET talks to peers on port 3333 [Intended for external use] this port is used to discover other lbrynet daemons with blobs.
|
2018-11-29 19:40:19 +01:00
|
|
|
## Expose 5566 Reflector port to listen on
|
|
|
|
## Expose 5279 Port the daemon API will listen on
|
2018-11-29 19:46:23 +01:00
|
|
|
## the lbryumx aka Wallet port [Intended for internal use]
|
2018-11-29 20:37:32 +01:00
|
|
|
EXPOSE 4444 3333 5566 5279 50001
|
2019-04-26 00:54:08 +02:00
|
|
|
USER lbrynet
|
2019-05-01 18:09:13 +02:00
|
|
|
ENTRYPOINT ["/usr/bin/checkmount"]
|
2018-11-29 19:29:19 +01:00
|
|
|
CMD ["start"]
|