2022-08-22 10:54:01 +12:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								ARG SHOUTRRR_VERSION=v0.6.1
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								FROM golang:bullseye AS builder
							 | 
						
					
						
							
								
									
										
										
										
											2022-08-22 11:35:04 +12:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								RUN git clone https://github.com/containrrr/shoutrrr.git shoutrrr && \
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    cd ./shoutrrr && \
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    git checkout ${SHOUTRRR_VERSION} && \
							 | 
						
					
						
							
								
									
										
										
										
											2022-08-22 10:54:01 +12:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    go build -o /output ./shoutrrr
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								FROM debian:11-slim
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								RUN apt-get update && \
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    apt-get install -y bash curl jq ca-certificates && \
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    rm -rf /var/lib/apt/lists/*
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								RUN ln -sf /bin/bash /bin/sh
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								WORKDIR /root
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								COPY --from=builder /output ./shoutrrr
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								RUN chmod +x /root/shoutrrr/shoutrrr && \
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    ln -sf /root/shoutrrr/shoutrrr /usr/bin/shoutrrr
							 |