18 lines
		
	
	
		
			383 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			383 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
| FROM golang:1.13 as builder
 | |
| 
 | |
| WORKDIR /go/src/github.com/sneak/fediverse-archive
 | |
| COPY . .
 | |
| 
 | |
| RUN go get -v && make build
 | |
| 
 | |
| # this container doesn't do anything except hold the build artifact
 | |
| # and make sure it compiles.
 | |
| 
 | |
| FROM alpine
 | |
| 
 | |
| COPY --from=builder /go/src/github.com/sneak/fediverse-archive/fediverse-archive /bin/fediverse-archive
 | |
| 
 | |
| CMD /bin/fediverse-archive
 | |
| 
 | |
| # FIXME add testing
 |