Dockerfile 570 B

12345678910111213141516
  1. FROM alpine:3.12
  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_CORE_PACKAGE_VERSION=0.19.1-r0
  5. ARG TTF_OPENSANS_PACKAGE_VERSION=1.10-r0
  6. ARG USER=bitcoin
  7. RUN apk add --no-cache \
  8. bitcoin-qt=$BITCOIN_CORE_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"]