mirror of
				https://github.com/garethgeorge/backrest.git
				synced 2025-10-30 04:07:03 +00:00 
			
		
		
		
	 42054f4a22
			
		
	
	42054f4a22
	
	
		
			
	
		
	
	
		
			Some checks failed
		
		
	
	Build Snapshot Release / build (push) Has been cancelled
				
			Release Please / release-please (push) Has been cancelled
				
			Test / test-nix (push) Has been cancelled
				
			Test / test-win (push) Has been cancelled
				
			Update Restic / update-restic-version (push) Has been cancelled
				
			
		
			
				
	
	
		
			19 lines
		
	
	
		
			601 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			601 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
| FROM golang:1.24-alpine AS builder
 | |
| WORKDIR /src
 | |
| COPY . .
 | |
| RUN go build -o /docker-entrypoint -ldflags "-s -w" ./cmd/docker-entrypoint
 | |
| 
 | |
| 
 | |
| FROM alpine:latest
 | |
| LABEL org.opencontainers.image.source="https://github.com/garethgeorge/backrest"
 | |
| RUN apk --no-cache add tini ca-certificates curl bash rclone openssh tzdata docker-cli
 | |
| RUN mkdir -p /tmp
 | |
| COPY backrest /backrest
 | |
| RUN /backrest --install-deps-only
 | |
| RUN mkdir -p /bin && mv /root/.local/share/backrest/restic /bin/restic
 | |
| 
 | |
| COPY --from=builder /docker-entrypoint /docker-entrypoint
 | |
| 
 | |
| ENTRYPOINT ["/sbin/tini", "--", "/docker-entrypoint"]
 | |
| CMD ["/backrest"]
 |