commit 4fe0af4e6a4a15ee4796a857e79ad0fe9b72c0f1 Author: Dylan <dylanpdx@gmail.com> Date: Wed Dec 28 18:09:25 2022 +0000 Misc. changes to MP4 Looping function commit 42ef8845c38c5a74e56da3c5f035d5a6c091c86a Author: Dylan <dylanpdx@gmail.com> Date: Tue Dec 27 20:00:22 2022 +0000 Abandoning raw gif conversion for now; looping vid instead commit b61938b340a02ac8cfab02048b7e9deaf87edbf5 Author: Dylan <dylanpdx@gmail.com> Date: Tue Dec 27 19:38:58 2022 +0000 More work on WIP gif generation commit 3bc6e7e0da1ce6ae905c80bbbaaa55a68050de52 Author: Dylan <dylanpdx@gmail.com> Date: Mon Dec 26 14:46:46 2022 +0000 Experimental gif conversion
		
			
				
	
	
		
			30 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Docker
		
	
	
	
	
	
| FROM public.ecr.aws/lambda/python:3.8 AS builder
 | |
| RUN yum -y install git curl
 | |
| RUN yum -y groupinstall 'Development Tools'
 | |
| RUN git clone https://github.com/kohler/gifsicle
 | |
| WORKDIR gifsicle
 | |
| RUN autoreconf -i
 | |
| RUN ./configure --disable-gifview --disable-gifdiff
 | |
| RUN make
 | |
| RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
 | |
| WORKDIR /var/task
 | |
| RUN git clone https://github.com/ImageOptim/gifski
 | |
| WORKDIR gifski
 | |
| RUN /root/.cargo/bin/cargo build --release
 | |
| 
 | |
| 
 | |
| FROM public.ecr.aws/lambda/python:3.8
 | |
| RUN yum -y update
 | |
| RUN yum -y install git && yum -y install wget && yum -y install tar.x86_64 && yum -y install xz && yum clean all
 | |
| RUN wget https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz
 | |
| RUN tar -xvf ffmpeg-release-amd64-static.tar.xz
 | |
| RUN mv ff*/ffmpeg . && mv ff*/ffprobe . && rm *.tar.xz && rm -rf ff*/
 | |
| COPY --from=builder /var/task/gifsicle/src/gifsicle ./
 | |
| COPY --from=builder /var/task/gifski/target/release/gifski ./
 | |
| 
 | |
| # Copy function code
 | |
| COPY __init__.py ${LAMBDA_TASK_ROOT}/app.py
 | |
| COPY conv.sh ${LAMBDA_TASK_ROOT}/conv.sh
 | |
| 
 | |
| # Set the CMD to your handler (could also be done as a parameter override outside of the Dockerfile)
 | |
| CMD [ "app.lambda_handler" ]  |