2018-11-13 14:44:15 +11:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								# ------------------------------------------------------------------------
							 | 
						
					
						
							
								
									
										
										
										
											2023-11-07 15:13:29 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								from golang:1.21.3-bullseye as build
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								run apt-get update && apt-get install -y git
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								workdir /src
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								copy go.mod go.sum ./
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								run go mod download
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								copy . ./
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								run go test ./...
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								run hack/build ./...
							 | 
						
					
						
							
								
									
										
										
										
											2018-06-19 17:49:34 +11:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2018-11-13 14:44:15 +11:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								# ------------------------------------------------------------------------
							 | 
						
					
						
							
								
									
										
										
										
											2023-05-15 19:34:51 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								from debian:bullseye
							 | 
						
					
						
							
								
									
										
										
										
											2018-11-13 14:44:15 +11:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								entrypoint ["/bin/dkl-local-server"]
							 | 
						
					
						
							
								
									
										
										
										
											2018-06-19 17:49:34 +11:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2019-10-19 15:08:41 +11:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								env _uncache 1
							 | 
						
					
						
							
								
									
										
										
										
											2018-06-19 17:49:34 +11:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								run apt-get update \
							 | 
						
					
						
							
								
									
										
										
										
											2023-11-07 15:13:29 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								 && yes |apt-get install -y genisoimage gdisk dosfstools util-linux udev binutils systemd \
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								 grub2 grub-pc-bin grub-efi-amd64-bin ca-certificates curl openssh-client \
							 | 
						
					
						
							
								
									
										
										
										
											2018-11-13 14:44:15 +11:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								 && apt-get clean
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2023-11-07 15:13:29 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								copy --from=build /src/dist/ /bin/
							 |