@@ -7,9 +7,16 @@ RUN apk add --no-cache --update git
7
7
# Copy in the local repository to build from.
8
8
COPY . /go/src/github.com/lightninglabs/lightning-terminal
9
9
10
+ # Set to 1 to enable this option and skip build of the web UI.
11
+ ARG NO_UI
12
+
10
13
RUN cd /go/src/github.com/lightninglabs/lightning-terminal/app \
11
- && yarn install \
12
- && yarn build
14
+ && if [ "$NO_UI" -eq "1" ]; then \
15
+ echo "skipping UI build" ;\
16
+ else \
17
+ yarn install \
18
+ && yarn build; \
19
+ fi
13
20
14
21
# The first stage is already done and all static assets should now be generated
15
22
# in the app/build sub directory.
@@ -28,6 +35,9 @@ ENV GODEBUG netdns=cgo
28
35
# queries that can be used to define a version.
29
36
ARG TAPROOT_ASSETS_VERSION
30
37
38
+ # Need to restate this since running in a new container from above.
39
+ ARG NO_UI
40
+
31
41
# Install dependencies and install/build lightning-terminal.
32
42
RUN apk add --no-cache --update alpine-sdk make \
33
43
&& cd /go/src/github.com/lightninglabs/lightning-terminal \
@@ -36,8 +46,13 @@ RUN apk add --no-cache --update alpine-sdk make \
36
46
go get -v github.com/lightninglabs/taproot-assets@$TAPROOT_ASSETS_VERSION \
37
47
&& go mod tidy; \
38
48
fi \
39
- && make go-install \
40
- && make go-install-cli
49
+ && if [ "$NO_UI" -eq "1" ]; then \
50
+ make go-install-noui \
51
+ && make go-install-cli-noui; \
52
+ else \
53
+ make go-install \
54
+ && make go-install-cli; \
55
+ fi
41
56
42
57
# Start a new, final image to reduce size.
43
58
FROM alpine:3.20.3@sha256:beefdbd8a1da6d2915566fde36db9db0b524eb737fc57cd1367effd16dc0d06d as final
0 commit comments