kopia lustrzana https://github.com/meshtastic/firmware
				
				
				
			
		
			
				
	
	
		
			15 wiersze
		
	
	
		
			757 B
		
	
	
	
		
			Docker
		
	
	
			
		
		
	
	
			15 wiersze
		
	
	
		
			757 B
		
	
	
	
		
			Docker
		
	
	
| FROM debian:bullseye-slim AS builder
 | |
| RUN apt-get update
 | |
| RUN DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get -y install wget python3 g++ zip python3-venv git vim
 | |
| RUN wget https://raw.githubusercontent.com/platformio/platformio-core-installer/master/get-platformio.py -O get-platformio.py; chmod +x get-platformio.py
 | |
| RUN python3 get-platformio.py
 | |
| RUN git clone https://github.com/meshtastic/firmware --recurse-submodules
 | |
| RUN cd firmware
 | |
| RUN chmod +x ./firmware/bin/build-native.sh
 | |
| RUN . ~/.platformio/penv/bin/activate; cd firmware; sh ./bin/build-native.sh
 | |
| 
 | |
| FROM frolvlad/alpine-glibc
 | |
| WORKDIR /root/
 | |
| COPY --from=builder /firmware/release/meshtasticd_linux_amd64 ./
 | |
| RUN apk --update add --no-cache g++
 | |
| CMD sh -cx "./meshtasticd_linux_amd64 --hwid '$RANDOM'" |