Skip to content

Commit d4ec057

Browse files
authoredJul 11, 2024··
chore: minor Dockerfile style changes (#202)
1 parent e963a08 commit d4ec057

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed
 

‎Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
ARG GO_VERSION
22
ARG GDK_VERSION
33

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
66

77
COPY --from=go /usr/local/go /usr/local/go
88
ENV PATH="/usr/local/go/bin:$PATH"
@@ -21,7 +21,7 @@ COPY --from=builder /boltz-client/boltzd /
2121
COPY --from=builder /boltz-client/boltzcli /
2222

2323
# Start a new, final image.
24-
FROM ubuntu:jammy as final
24+
FROM ubuntu:jammy AS final
2525

2626
RUN apt update && apt install ca-certificates -y && rm -rf /var/lib/apt/lists/*
2727

‎compat.Dockerfile

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
FROM golang:1.20.2 as old-builder
1+
FROM golang:1.20.2 AS old-builder
22

3-
# Shallow clone project.
3+
# Shallow clone project
44
RUN git clone --depth=1 --branch v1.2.7 https://github.com/BoltzExchange/boltz-lnd /go/src/github.com/BoltzExchange/boltz-lnd
55

6-
# Build the binaries.
6+
# Build the binaries
77
RUN cd /go/src/github.com/BoltzExchange/boltz-lnd \
88
&& go mod vendor \
99
&& make build
1010

11-
FROM boltz/boltz-client:latest as final
11+
FROM boltz/boltz-client:latest AS final
1212

1313
VOLUME /root/.boltz
1414

‎gdk.Dockerfile

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
ARG GDK_VERSION
2-
FROM michael1011/gdk-ubuntu-builder:$GDK_VERSION as builder
2+
FROM michael1011/gdk-ubuntu-builder:$GDK_VERSION AS builder
33

44
ARG GDK_VERSION
55
ARG GDK_ARGS
66

77
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
910

1011
ENTRYPOINT []

0 commit comments

Comments
 (0)
Please sign in to comment.