-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.decred
More file actions
32 lines (23 loc) · 1.06 KB
/
Dockerfile.decred
File metadata and controls
32 lines (23 loc) · 1.06 KB
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
# Docker image containing dcrwallet and dcrctl binaries.
# Built and published automatically via GitHub Actions.
#
# Usage:
# docker run ghcr.io/<owner>/decred dcrwallet [args...]
# docker run ghcr.io/<owner>/decred dcrctl [args...]
FROM debian:bookworm-slim AS builder
ARG DECRED_VERSION=2.1.5
ARG TARGETOS=linux
ARG TARGETARCH=amd64
RUN apt-get update && apt-get install -y --no-install-recommends curl ca-certificates && \
rm -rf /var/lib/apt/lists/*
RUN curl -fsSL "https://github.com/decred/decred-binaries/releases/download/v${DECRED_VERSION}/decred-${TARGETOS}-${TARGETARCH}-v${DECRED_VERSION}.tar.gz" \
-o /tmp/decred.tar.gz && \
tar -xzf /tmp/decred.tar.gz -C /tmp && \
mv /tmp/decred-${TARGETOS}-${TARGETARCH}-v${DECRED_VERSION} /tmp/decred
FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y --no-install-recommends curl ca-certificates && \
rm -rf /var/lib/apt/lists/*
COPY --from=builder /tmp/decred/dcrwallet /usr/local/bin/
COPY --from=builder /tmp/decred/dcrctl /usr/local/bin/
VOLUME ["/root/.dcrwallet"]
CMD ["dcrwallet"]