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