Dockerfile 568 B

12345678910111213141516
  1. FROM alpine:3.13.1
  2. # > All command-line options (except for '-datadir' and '-conf') may be specified in a configuration file
  3. ENV DATA_DIR_PATH=/var/lib/bitcoin
  4. ARG BITCOIN_QT_PACKAGE_VERSION=0.20.1-r1
  5. ARG TTF_OPENSANS_PACKAGE_VERSION=1.10-r1
  6. ARG USER=bitcoin
  7. RUN apk add --no-cache \
  8. bitcoin-qt=$BITCOIN_QT_PACKAGE_VERSION \
  9. ttf-opensans=$TTF_OPENSANS_PACKAGE_VERSION \
  10. && adduser -h "$DATA_DIR_PATH" -u 100 -S $USER
  11. VOLUME $DATA_DIR_PATH
  12. USER $USER
  13. EXPOSE 8333/tcp
  14. CMD ["sh", "-c", "exec bitcoin-qt -datadir=\"$DATA_DIR_PATH\" -printtoconsole"]