Last active
August 7, 2022 09:39
-
-
Save mdPlusPlus/a2ce4d8b74def9c9b9eb767743ca539d to your computer and use it in GitHub Desktop.
Dockerfile for oxend (https://oxen.io/)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:focal | |
LABEL "author"="mdPlusPlus" | |
LABEL "name"="oxend" | |
LABEL "description"="Dockerfile for oxend (https://oxen.io/)" | |
# blockchain syncing | |
EXPOSE 22022/tcp | |
# remote node connection | |
EXPOSE 22023/tcp | |
# local admin interface | |
#EXPOSE 22024/tcp | |
VOLUME ["/var/lib/oxen", "/var/log/oxen"] | |
RUN \ | |
apt update && \ | |
apt install -y curl && \ | |
curl -so /etc/apt/trusted.gpg.d/oxen.gpg https://deb.oxen.io/pub.gpg && \ | |
echo "deb https://deb.oxen.io focal main" > /etc/apt/sources.list.d/oxen.list && \ | |
apt update && \ | |
apt install -y oxend && \ | |
apt clean && \ | |
echo "rpc-public=0.0.0.0:22023" >> /etc/oxen/oxen.conf && \ | |
echo "rpc-admin=127.0.0.1:22024" >> /etc/oxen/oxen.conf | |
#USER _loki | |
WORKDIR /var/lib/oxen | |
#ENTRYPOINT ["/usr/bin/oxend", "--non-interactive", "--config-file", "/etc/oxen/oxen.conf"] | |
CMD ["/usr/bin/oxend", "--non-interactive", "--config-file", "/etc/oxen/oxen.conf"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment