moq-rs/media/Dockerfile

25 lines
617 B
Docker
Raw Normal View History

2023-05-16 17:23:50 +00:00
# Create a build image
FROM ubuntu:latest
# Create the working directory.
WORKDIR /build
2023-05-16 17:23:50 +00:00
# Install necessary packages
RUN apt-get update && \
apt-get install -y \
ca-certificates \
wget \
ffmpeg
# Download a file from the internet, in this case my boy big buck bunny
RUN wget http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4 -O source.mp4
# Copy an run a script to create a fragmented mp4 (more overhead, easier to split)
COPY fragment .
# Create a media volume
VOLUME /media
# Fragment the media
# TODO support an output directory
CMD ./fragment && cp fragmented.mp4 /media