2022-08-22 10:54:01 +12:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								ARG SHOUTRRR_VERSION=v0.6.1
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								FROM golang:bullseye AS builder
							 | 
						
					
						
							
								
									
										
										
										
											2022-08-22 12:06:44 +12:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								ARG SHOUTRRR_VERSION
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								RUN git clone -b ${SHOUTRRR_VERSION} --depth 1 https://github.com/containrrr/shoutrrr.git ./shoutrrr
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								RUN cd ./shoutrrr && \
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    mkdir /output && \
							 | 
						
					
						
							
								
									
										
										
										
											2022-08-22 10:54:01 +12:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    go build -o /output ./shoutrrr
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								FROM debian:11-slim
							 | 
						
					
						
							
								
									
										
										
										
											2022-08-22 12:06:44 +12:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
							 | 
						
					
						
							
								
									
										
										
										
											2022-08-22 10:54:01 +12:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								RUN apt-get update && \
							 | 
						
					
						
							
								
									
										
										
										
											2022-08-22 12:06:44 +12:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    apt-get -y --no-install-recommends install \
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								      bash \
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								      curl \ 
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								      jq \
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								      ca-certificates && \
							 | 
						
					
						
							
								
									
										
										
										
											2022-08-22 10:54:01 +12:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    rm -rf /var/lib/apt/lists/*
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								RUN ln -sf /bin/bash /bin/sh
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								WORKDIR /root
							 | 
						
					
						
							
								
									
										
										
										
											2022-08-22 12:06:44 +12:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								COPY --from=builder /output/shoutrrr /usr/bin/shoutrrr
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								RUN chmod +x /usr/bin/shoutrrr
							 |