Commit d4ec057 authored Jul 11, 2024 · 1 / 1 · Verified
1 parent e963a08 commit d4ec057 Copy full SHA for d4ec057
File tree 3 files changed +10
-9
lines changed
3 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 1
1
ARG GO_VERSION
2
2
ARG GDK_VERSION
3
3
4
- FROM golang:$GO_VERSION-alpine as go
5
- FROM boltz/gdk-ubuntu:$GDK_VERSION as builder
4
+ FROM golang:$GO_VERSION-alpine AS go
5
+ FROM boltz/gdk-ubuntu:$GDK_VERSION AS builder
6
6
7
7
COPY --from=go /usr/local/go /usr/local/go
8
8
ENV PATH="/usr/local/go/bin:$PATH"
@@ -21,7 +21,7 @@ COPY --from=builder /boltz-client/boltzd /
21
21
COPY --from=builder /boltz-client/boltzcli /
22
22
23
23
# Start a new, final image.
24
- FROM ubuntu:jammy as final
24
+ FROM ubuntu:jammy AS final
25
25
26
26
RUN apt update && apt install ca-certificates -y && rm -rf /var/lib/apt/lists/*
27
27
Original file line number Diff line number Diff line change 1
- FROM golang:1.20.2 as old-builder
1
+ FROM golang:1.20.2 AS old-builder
2
2
3
- # Shallow clone project.
3
+ # Shallow clone project
4
4
RUN git clone --depth=1 --branch v1.2.7 https://github.com/BoltzExchange/boltz-lnd /go/src/github.com/BoltzExchange/boltz-lnd
5
5
6
- # Build the binaries.
6
+ # Build the binaries
7
7
RUN cd /go/src/github.com/BoltzExchange/boltz-lnd \
8
8
&& go mod vendor \
9
9
&& make build
10
10
11
- FROM boltz/boltz-client:latest as final
11
+ FROM boltz/boltz-client:latest AS final
12
12
13
13
VOLUME /root/.boltz
14
14
Original file line number Diff line number Diff line change 1
1
ARG GDK_VERSION
2
- FROM michael1011/gdk-ubuntu-builder:$GDK_VERSION as builder
2
+ FROM michael1011/gdk-ubuntu-builder:$GDK_VERSION AS builder
3
3
4
4
ARG GDK_VERSION
5
5
ARG GDK_ARGS
6
6
7
7
RUN git clone https://github.com/Blockstream/gdk --depth 1 --branch release_$GDK_VERSION
8
- RUN export PATH="/root/.cargo/bin:$PATH" && cd gdk && ./tools/build.sh --gcc --buildtype release --no-deps-rebuild --external-deps-dir /prebuild/gcc $GDK_ARGS
8
+ RUN export PATH="/root/.cargo/bin:$PATH" && cd gdk && \
9
+ ./tools/build.sh --gcc --buildtype release --no-deps-rebuild --external-deps-dir /prebuild/gcc $GDK_ARGS
9
10
10
11
ENTRYPOINT []
You can’t perform that action at this time.
0 commit comments