| 
									
										
										
										
											2024-09-17 16:27:27 +00:00
										 |  |  | FROM golang:1.23-alpine AS builder | 
					
						
							|  |  |  | RUN <<EOF | 
					
						
							| 
									
										
										
										
											2024-12-05 20:12:18 +00:00
										 |  |  | apk --no-cache -U upgrade | 
					
						
							|  |  |  | apk --no-cache -U add build-base git | 
					
						
							| 
									
										
										
										
											2024-09-17 16:27:27 +00:00
										 |  |  | mkdir -p /opt | 
					
						
							|  |  |  | cd /opt | 
					
						
							| 
									
										
										
										
											2024-11-26 18:38:19 +00:00
										 |  |  | git clone https://github.com/t3chn0m4g3/galah | 
					
						
							| 
									
										
										
										
											2024-12-05 20:12:18 +00:00
										 |  |  | cd galah | 
					
						
							|  |  |  | git checkout d4739ec5abaed83c5367716a77908be548d3d003 | 
					
						
							| 
									
										
										
										
											2024-09-17 16:27:27 +00:00
										 |  |  | EOF | 
					
						
							|  |  |  | WORKDIR /opt/galah | 
					
						
							|  |  |  | ENV CGO_ENABLED=1 | 
					
						
							|  |  |  | RUN <<EOF | 
					
						
							|  |  |  | go mod download | 
					
						
							|  |  |  | go build -o galah ./cmd/galah | 
					
						
							|  |  |  | EOF | 
					
						
							|  |  |  | # | 
					
						
							|  |  |  | FROM alpine:3.20 | 
					
						
							| 
									
										
										
										
											2025-01-06 16:54:17 +00:00
										 |  |  | RUN apk --no-cache -U upgrade && \ | 
					
						
							|  |  |  |     apk --no-cache -U add openssl | 
					
						
							| 
									
										
										
										
											2024-09-17 16:27:27 +00:00
										 |  |  | COPY --from=builder /opt/galah/ /opt/galah/ | 
					
						
							|  |  |  | # | 
					
						
							|  |  |  | # Start galah | 
					
						
							|  |  |  | WORKDIR /opt/galah | 
					
						
							| 
									
										
										
										
											2024-11-26 18:38:19 +00:00
										 |  |  | USER 2000:2000 | 
					
						
							| 
									
										
										
										
											2024-09-17 16:27:27 +00:00
										 |  |  | CMD ["./entrypoint.sh"] |