mirror of
https://github.com/yzernik/squeaknode.git
synced 2026-08-16 13:01:04 +02:00
Speed up docker build by caching rpc file downloads. (#12)
This commit is contained in:
parent
10227fa1aa
commit
890fb68c7c
2 changed files with 16 additions and 2 deletions
|
|
@ -11,8 +11,17 @@ COPY requirements.txt /
|
|||
RUN pip3 install --upgrade pip
|
||||
RUN pip3 install -r requirements.txt
|
||||
|
||||
# Download the rpc files.
|
||||
RUN git clone https://github.com/googleapis/googleapis.git
|
||||
RUN curl -o rpc.proto -s https://raw.githubusercontent.com/lightningnetwork/lnd/master/lnrpc/rpc.proto
|
||||
|
||||
# Copy the source code.
|
||||
COPY . /app
|
||||
|
||||
# Copy the source code.
|
||||
RUN cp -r googleapis /app
|
||||
RUN cp rpc.proto /app
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Install the gRPC files.
|
||||
|
|
|
|||
|
|
@ -1,7 +1,12 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
git clone https://github.com/googleapis/googleapis.git
|
||||
curl -o rpc.proto -s https://raw.githubusercontent.com/lightningnetwork/lnd/master/lnrpc/rpc.proto
|
||||
if [ ! -d "googleapis" ]; then
|
||||
git clone https://github.com/googleapis/googleapis.git
|
||||
fi
|
||||
|
||||
if [ ! -f "rpc.proto" ]; then
|
||||
curl -o rpc.proto -s https://raw.githubusercontent.com/lightningnetwork/lnd/master/lnrpc/rpc.proto
|
||||
fi
|
||||
|
||||
cp rpc.proto squeaknode/common
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue