2023-08-12 23:14:28 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								FROM  alpine:3.17 AS build 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								RUN  apk add --no-cache build-base musl-dev git autoconf make texinfo gnutls-dev ncurses-dev gawk
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								FROM  build AS build-emacs 
  
						 
					
						
							
								
									
										
										
										
											2023-08-25 01:37:25 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								ARG  EMACS_VERSION = emacs-29.1
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								RUN  git clone --depth 1  --branch $EMACS_VERSION  https://git.savannah.gnu.org/git/emacs.git /root/emacs
  
						 
					
						
							
								
									
										
										
										
											2023-08-12 23:14:28 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								WORKDIR  /root/emacs 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								RUN  mkdir /root/dist
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								RUN  ./autogen.sh
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								RUN  ./configure --prefix /usr --without-x --without-sound
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								RUN  make
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								RUN  make DESTDIR = "/root/dist"  install
  
						 
					
						
							
								
									
										
										
										
											2023-07-12 23:14:22 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2023-08-12 23:14:28 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								FROM  build AS build-org-mode 
  
						 
					
						
							
								
									
										
										
										
											2023-08-25 02:55:01 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								ARG  ORG_VERSION = 7bdec435ff5d86220d13c431e799c5ed44a57da1 
						 
					
						
							
								
									
										
										
										
											2023-08-12 23:14:28 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								COPY  --from= build-emacs /root/dist/ /
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								RUN  mkdir /root/dist
  
						 
					
						
							
								
									
										
										
										
											2023-08-25 01:37:25 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# Savannah does not allow fetching specific revisions, so we're going to have to put unnecessary load on their server by cloning main and then checking out the revision we want. 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								RUN  git clone https://git.savannah.gnu.org/git/emacs/org-mode.git /root/org-mode &&  git -C /root/org-mode checkout $ORG_VERSION 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# RUN mkdir /root/org-mode && git -C /root/org-mode init --initial-branch=main && git -C /root/org-mode remote add origin https://git.savannah.gnu.org/git/emacs/org-mode.git && git -C /root/org-mode fetch origin $ORG_VERSION && git -C /root/org-mode checkout FETCH_HEAD 
  
						 
					
						
							
								
									
										
										
										
											2023-08-12 23:14:28 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								WORKDIR  /root/org-mode 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								RUN  make compile
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								RUN  make DESTDIR = "/root/dist"  install
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								FROM  rustlang/rust:nightly-alpine3.17 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								RUN  apk add --no-cache musl-dev ncurses gnutls
  
						 
					
						
							
								
									
										
										
										
											2023-07-14 01:59:51 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								RUN  cargo install --locked --no-default-features --features ci-autoclean cargo-cache
  
						 
					
						
							
								
									
										
										
										
											2023-08-12 23:14:28 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								COPY  --from= build-emacs /root/dist/ /
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								COPY  --from= build-org-mode /root/dist/ /