You've already forked woodpecker
							
							
				mirror of
				https://github.com/woodpecker-ci/woodpecker.git
				synced 2025-10-30 23:27:39 +02:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			423 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			423 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
| # Build the drone executable on a x64 Linux host:
 | |
| #
 | |
| #     go build --ldflags '-extldflags "-static"' -o drone_static
 | |
| #
 | |
| #
 | |
| # Alternate command for Go 1.4 and older:
 | |
| #
 | |
| #     go build -a -tags netgo --ldflags '-extldflags "-static"' -o drone_static
 | |
| #
 | |
| #
 | |
| # Build the docker image:
 | |
| #
 | |
| #     docker build --rm=true -t drone/drone .
 | |
| 
 | |
| FROM centurylink/ca-certs
 | |
| EXPOSE 8080
 | |
| 
 | |
| ADD drone_static /drone_static
 | |
| 
 | |
| ENTRYPOINT ["/drone_static"] |