Created
May 31, 2020 21:47
-
-
Save motoy3d/155bbc32d300ef526287016e2303d3d5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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