neobytes/dockerfile

34 lines
886 B
Plaintext
Raw Normal View History

2024-12-21 22:55:27 +01:00
FROM ubuntu:18.04
ARG UID=101
ARG GID=101
LABEL maintainer="SikkieNL"
LABEL description="Dockerised NeobytesCore."
RUN groupadd --gid ${GID} neobytes \
&& useradd --create-home --no-log-init -u ${UID} -g ${GID} neobytes \
&& apt-get update -y \
&& apt-get upgrade -y \
&& apt-get install -y curl gnupg gosu \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/* /tmp/* /var/tmp/*
ENV NEOBYTES_VERSION=V0.12.1.1
ENV NEOBYTES_DATA=/home/neobytes/.neobytes
ENV PATH=/opt/neobytes-${NEOBYTES_VERSION}/bin:$PATH
RUN set -ex \
&& curl -SLO https://bitcoin.org/bin/bitcoin-core-${NEOBYTES_VERSION}/neobytes-${NEOBYTES_VERSION}-linux64.tar.gz \
&& tar -xzf *.tar.gz -C /opt \
&& rm *.tar.gz *.asc
COPY docker-entrypoint.sh /entrypoint.sh
VOLUME ["/home/neobytes/.neobytes"]
EXPOSE 8332 8333 18332 18333 18444
#ENTRYPOINT ["/entrypoint.sh"]
CMD ["neobytesd"]