-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (30 loc) · 826 Bytes
/
Dockerfile
File metadata and controls
35 lines (30 loc) · 826 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM qtum-alpine-bin as build
LABEL maintainers "earlz, VoR0220"
FROM alpine
#
# Copy the binaries from the build to our new container
#
COPY --from=build /usr/local/bin/qtumd /usr/local/bin
COPY --from=build /usr/local/bin/qtum-cli /usr/local/bin
#
# Install all dependencies
#
RUN apk update && apk add boost boost-filesystem \
boost-program_options \
boost-system boost-thread \
boost-random busybox db-c++ \
libevent libgcc libressl2.7-libcrypto \
libstdc++ musl
#
# Copy the qtum.conf file from
# the build context into the container
#
COPY qtum.conf /qtum.conf
# create data directory
ENV QTUM_DATA /data
RUN mkdir $QTUM_DATA \
&& ln -sfn $QTUM_DATA /.qtum
VOLUME /data
EXPOSE 3888 3889 13888 13889
ENV PATH=${PATH}:/usr/local/bin:
CMD ["qtumd", "-regtest", "-logevents", "-printtoconsole"]