| 
									
										
										
										
											2023-11-28 21:52:11 +01:00
										 |  |  | # Defining custom repo urls for use in enterprise environments. Re-used between stages below.
 | 
					
						
							|  |  |  | ARG ALPINE_REPO_URL=http://dl-cdn.alpinelinux.org/alpine
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-01 11:21:23 -05:00
										 |  |  | FROM alpine:3.22
 | 
					
						
							| 
									
										
										
										
											2025-09-05 09:04:08 -07:00
										 |  |  | COPY --from=powerman/dockerize:0.24 /usr/local/bin/dockerize /usr/local/bin
 | 
					
						
							| 
									
										
										
										
											2023-02-22 04:13:11 -06:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-28 21:52:11 +01:00
										 |  |  | ARG ALPINE_REPO_URL
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # Optionally set corporate mirror for apk
 | 
					
						
							|  |  |  | RUN if [ "${ALPINE_REPO_URL}" != "http://dl-cdn.alpinelinux.org/alpine" ] ; then sed -i "s#http.*://dl-cdn.alpinelinux.org/alpine#${ALPINE_REPO_URL}#g" /etc/apk/repositories ; fi
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-05-12 13:03:43 -04:00
										 |  |  | # PFP-260: Upgrade Sqlite to >=3.28.0-r0 to fix https://security.snyk.io/vuln/SNYK-ALPINE39-SQLITE-449762
 | 
					
						
							|  |  |  | RUN apk add --no-cache postgresql-client sqlite
 | 
					
						
							| 
									
										
										
										
											2021-08-06 15:25:50 +09:00
										 |  |  | 
 | 
					
						
							|  |  |  | COPY docker/postgres-setup/init.sql /init.sql
 | 
					
						
							|  |  |  | COPY docker/postgres-setup/init.sh /init.sh
 | 
					
						
							|  |  |  | RUN chmod 755 init.sh
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ENV DATAHUB_DB_NAME="datahub"
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | CMD dockerize -wait tcp://$POSTGRES_HOST:$POSTGRES_PORT -timeout 240s /init.sh
 |