mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 11:15:07 +03:00 
			
		
		
		
	- Multiple architectures supported by using Golang's official Debian Stretch image. - Upgrading os to latest updates - Adding all files to image - Creating user for yggdrasil (kinda unused) - Building from source code
		
			
				
	
	
		
			18 lines
		
	
	
	
		
			415 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
	
		
			415 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
FROM golang:stretch
 | 
						|
MAINTAINER Christer Waren/CWINFO "christer.waren@cwinfo.org"
 | 
						|
 | 
						|
RUN apt-get update \
 | 
						|
    && apt-get upgrade -y
 | 
						|
 | 
						|
ADD . /src
 | 
						|
 | 
						|
WORKDIR /src
 | 
						|
 | 
						|
RUN adduser --system --home /etc/yggdrasil-network --uid 1000 yggdrasil-network \
 | 
						|
    && rm -rf build_* && ./build \
 | 
						|
    && cp yggdrasil /usr/bin \
 | 
						|
    && cp contrib/docker/entrypoint.sh /
 | 
						|
 | 
						|
VOLUME [ "/etc/yggdrasil-network" ]
 | 
						|
 | 
						|
ENTRYPOINT [ "/entrypoint.sh" ]
 |