Skip to content

Instantly share code, notes, and snippets.

@motoy3d
Created May 31, 2020 21:47
Show Gist options
  • Save motoy3d/155bbc32d300ef526287016e2303d3d5 to your computer and use it in GitHub Desktop.
Save motoy3d/155bbc32d300ef526287016e2303d3d5 to your computer and use it in GitHub Desktop.
FROM jrottenberg/ffmpeg
RUN apt-get update && apt-get install -y \
curl \
unzip \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# aws cli v2 install
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
RUN unzip awscliv2.zip
RUN ./aws/install
# transcode by ffmpeg
COPY transcoder.sh /usr/local/bin/transcoder.sh
RUN chmod +x /usr/local/bin/transcoder.sh
# for local test (ECSではタスクにS3FullAccessを付与するため、ECS用にビルドする時は下記2行コメントアウト)
RUN mkdir /root/.aws
COPY config credentials /root/.aws/
ENTRYPOINT ["/usr/local/bin/transcoder.sh"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment