24 lines
		
	
	
		
			630 B
		
	
	
	
		
			Plaintext
		
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			630 B
		
	
	
	
		
			Plaintext
		
	
	
	
| ARG BASE_IMAGE=registry.opensource.zalan.do/library/alpine-3:latest
 | |
| ARG VERSION=latest
 | |
| 
 | |
| FROM ubuntu:20.04 as builder
 | |
| 
 | |
| LABEL maintainer="Team ACID @ Zalando <team-acid@zalando.de>"
 | |
| 
 | |
| # We need root certificates to deal with teams api over https
 | |
| RUN apk --no-cache add ca-certificates go git musl-dev
 | |
| 
 | |
| COPY build/* /
 | |
| 
 | |
| RUN addgroup -g 1000 pgo
 | |
| RUN adduser -D -u 1000 -G pgo -g 'Postgres Operator' pgo
 | |
| 
 | |
| RUN go get -d github.com/derekparker/delve/cmd/dlv
 | |
| RUN cp /root/go/bin/dlv /dlv
 | |
| RUN chown -R pgo:pgo /dlv
 | |
| 
 | |
| USER pgo:pgo
 | |
| RUN ls -l /
 | |
| 
 | |
| CMD ["/dlv", "--listen=:7777", "--headless=true", "--api-version=2", "exec", "/postgres-operator"]
 |