mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 11:15:07 +03:00 
			
		
		
		
	Update Dockerfile
Making easier to install and update, because dont have to download Github repository manually.
This commit is contained in:
		
							parent
							
								
									462af89600
								
							
						
					
					
						commit
						c2561c90c7
					
				
					 1 changed files with 5 additions and 7 deletions
				
			
		| 
						 | 
				
			
			@ -1,16 +1,14 @@
 | 
			
		|||
FROM docker.io/golang:alpine as builder
 | 
			
		||||
FROM golang:alpine as builder
 | 
			
		||||
 | 
			
		||||
WORKDIR /src
 | 
			
		||||
 | 
			
		||||
RUN apk add git
 | 
			
		||||
 | 
			
		||||
RUN git clone https://github.com/yggdrasil-network/yggdrasil-go.git .
 | 
			
		||||
 | 
			
		||||
ENV CGO_ENABLED=0
 | 
			
		||||
 | 
			
		||||
RUN ./build
 | 
			
		||||
RUN apk add git && \
 | 
			
		||||
    git clone https://github.com/yggdrasil-network/yggdrasil-go.git . && \
 | 
			
		||||
    ./build
 | 
			
		||||
 | 
			
		||||
FROM docker.io/alpine
 | 
			
		||||
FROM alpine
 | 
			
		||||
LABEL maintainer="Christer Waren/CWINFO <christer.waren@cwinfo.org>"
 | 
			
		||||
 | 
			
		||||
COPY --from=builder /src/yggdrasil /usr/bin/yggdrasil
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue