We were running behind and there were quite some deprecations to update. This was mostly in the upstream copy/pasta package but seems quite minimal.
		
			
				
	
	
		
			31 lines
		
	
	
		
			390 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			390 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
| # Build image
 | |
| FROM golang:1.24-alpine AS build
 | |
| 
 | |
| ENV GOPRIVATE=coopcloud.tech
 | |
| 
 | |
| RUN apk add --no-cache \
 | |
|   gcc \
 | |
|   git \
 | |
|   make \
 | |
|   musl-dev
 | |
| 
 | |
| COPY . /app
 | |
| 
 | |
| WORKDIR /app
 | |
| 
 | |
| RUN CGO_ENABLED=0 make build
 | |
| 
 | |
| # Release image ("slim")
 | |
| FROM alpine:3.19.1
 | |
| 
 | |
| RUN apk add --no-cache \
 | |
|   ca-certificates \
 | |
|   git \
 | |
|   openssh
 | |
| 
 | |
| RUN update-ca-certificates
 | |
| 
 | |
| COPY --from=build /app/abra /abra
 | |
| 
 | |
| ENTRYPOINT ["/abra"]
 |