mirror of
https://github.com/Retropex/docker-bitcoind.git
synced 2025-05-25 03:22:30 +02:00
get rid of bitcoin user
This commit is contained in:
parent
a0df9b182d
commit
5818a7f58d
12
Dockerfile
12
Dockerfile
@ -85,13 +85,13 @@ RUN strip ${BITCOIN_PREFIX}/bin/bitcoind
|
|||||||
RUN strip ${BITCOIN_PREFIX}/lib/libbitcoinconsensus.a
|
RUN strip ${BITCOIN_PREFIX}/lib/libbitcoinconsensus.a
|
||||||
RUN strip ${BITCOIN_PREFIX}/lib/libbitcoinconsensus.so.0.0.0
|
RUN strip ${BITCOIN_PREFIX}/lib/libbitcoinconsensus.so.0.0.0
|
||||||
|
|
||||||
|
|
||||||
# Build stage for compiled artifacts
|
# Build stage for compiled artifacts
|
||||||
FROM alpine
|
FROM alpine AS final
|
||||||
|
|
||||||
LABEL maintainer.0="nolim1t (@nolim1t)" \
|
LABEL maintainer.0="nolim1t (@nolim1t)" \
|
||||||
maintainer.1="meeDamian (@meeDamian)"
|
maintainer.1="meeDamian (@meeDamian)"
|
||||||
|
|
||||||
RUN adduser -S bitcoin
|
|
||||||
RUN sed -i 's/http\:\/\/dl-cdn.alpinelinux.org/https\:\/\/alpine.global.ssl.fastly.net/g' /etc/apk/repositories
|
RUN sed -i 's/http\:\/\/dl-cdn.alpinelinux.org/https\:\/\/alpine.global.ssl.fastly.net/g' /etc/apk/repositories
|
||||||
RUN apk --no-cache add \
|
RUN apk --no-cache add \
|
||||||
boost \
|
boost \
|
||||||
@ -101,16 +101,14 @@ RUN apk --no-cache add \
|
|||||||
libzmq \
|
libzmq \
|
||||||
su-exec
|
su-exec
|
||||||
|
|
||||||
ENV BITCOIN_DATA=/home/bitcoin/.bitcoin
|
|
||||||
ENV BITCOIN_VERSION=0.17.1
|
ENV BITCOIN_VERSION=0.17.1
|
||||||
ENV BITCOIN_PREFIX=/opt/bitcoin-${BITCOIN_VERSION}
|
ENV BITCOIN_PREFIX=/opt/bitcoin-${BITCOIN_VERSION}
|
||||||
ENV PATH=${BITCOIN_PREFIX}/bin:$PATH
|
ENV PATH=${BITCOIN_PREFIX}/bin:$PATH
|
||||||
|
|
||||||
COPY --from=bitcoin-core /opt /opt
|
VOLUME /root/.bitcoin
|
||||||
|
|
||||||
VOLUME ["/home/bitcoin/.bitcoin"]
|
COPY --from=bitcoin-core /opt /opt
|
||||||
|
|
||||||
EXPOSE 8332 8333 18332 18333 18444 28333 28332
|
EXPOSE 8332 8333 18332 18333 18444 28333 28332
|
||||||
|
|
||||||
|
CMD ["bitcoind", "-zmqpubrawblock=tcp://0.0.0.0:28332", "-zmqpubrawtx=tcp://0.0.0.0:28333"]
|
||||||
CMD ["bitcoind", "-datadir=/home/bitcoin/.bitcoin", "-zmqpubrawblock=tcp://0.0.0.0:28332", "-zmqpubrawtx=tcp://0.0.0.0:28333"]
|
|
||||||
|
Loading…
Reference in New Issue
Block a user