File tree Expand file tree Collapse file tree 3 files changed +36
-2
lines changed Expand file tree Collapse file tree 3 files changed +36
-2
lines changed Original file line number Diff line number Diff line change @@ -164,13 +164,17 @@ app-build: yarn-install
164164	@$(call  print, "Building production app.") 
165165	cd  app;  yarn build
166166
167- release : app-build go-release
167+ docker-app-build :
168+ 	@$(call  print, "Building production app in docker.") 
169+ 	cd  app;  ./gen_app_docker.sh
170+ 
171+ release : docker-app-build go-release
168172
169173go-release :
170174	@$(call  print, "Creating release of lightning-terminal.") 
171175	./scripts/release.sh build-release " $( VERSION_TAG) "   " $( BUILD_SYSTEM) "   " $( LND_RELEASE_TAGS) "   " $( RELEASE_LDFLAGS) "   " $( GO_VERSION) " 
172176
173- docker-release : app-build
177+ docker-release : docker- app-build
174178	@$(call  print, "Building release helper docker image.") 
175179	if  [ " $( tag) "   =  " "   ];  then  echo  " Must specify tag=<commit_or_tag>!" ;  exit  1;  fi 
176180
Original file line number Diff line number Diff line change 1+ #  Start with a NodeJS base image that also contains yarn.
2+ FROM  node:22.8.0-bookworm@sha256:bd00c03095f7586432805dbf7989be10361d27987f93de904b1fc003949a4794 as nodejsbuilder
3+ 
4+ RUN  apt-get update && apt-get install -y \
5+   git \
6+   protobuf-compiler='3.21.12*'  \
7+   clang-format='1:14.0*' 
8+ 
9+ RUN  mkdir /build
10+ 
11+ WORKDIR  /build
12+ 
13+ CMD  ["/bin/bash" , "-c" , "cd app && yarn install && yarn build" ]
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ 
3+ set  -e
4+ 
5+ #  Directory of the script file, independent of where it's called from.
6+ DIR=" $( cd " $(  dirname " ${BASH_SOURCE[0]} "   ) "   &&  pwd) " 
7+ 
8+ echo  " Building app compiler docker image..." 
9+ docker build -q -t lit-app-builder . 
10+ 
11+ echo  " Compiling app files..." 
12+ docker run \
13+   --rm \
14+   --user $UID :$UID  \
15+   -e UID=$UID  \
16+   -v " $DIR /../:/build"   \
17+   lit-app-builder
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments