-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile.dev
29 lines (23 loc) · 1015 Bytes
/
Dockerfile.dev
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
ARG gover=1.21.9
FROM golang:$gover
ARG goplatform
ARG cplatform
ARG lnd
ARG bitcoind
ARG vault
RUN apt update && apt-get install -y zip
RUN cd /root && \
wget https://bitcoincore.org/bin/bitcoin-core-$bitcoind/bitcoin-${bitcoind}-${cplatform}-linux-gnu.tar.gz && \
tar xfz bitcoin-$bitcoind-$cplatform-linux-gnu.tar.gz && \
mv bitcoin-$bitcoind/bin/* /usr/local/bin/ && \
wget https://github.com/lightningnetwork/lnd/releases/download/$lnd/lnd-linux-$goplatform-$lnd.tar.gz && \
tar xfz lnd-linux-$goplatform-$lnd.tar.gz && \
mv lnd-linux-$goplatform-$lnd/* /usr/local/bin/ && \
wget https://releases.hashicorp.com/vault/$vault/vault_${vault}_linux_${goplatform}.zip && \
unzip vault_${vault}_linux_${goplatform}.zip && \
mv vault /usr/local/bin/ && \
go install github.com/go-delve/delve/cmd/dlv@latest && \
git config --global --add safe.directory /app && \
echo "export PATH='$PATH:/usr/local/go/bin:/root/go/bin'" >> .bashrc
VOLUME [ "/app" ]
WORKDIR /app