Skip to content

Commit

Permalink
Merge pull request #2 from dfpc-coe/volume
Browse files Browse the repository at this point in the history
Volume Config
  • Loading branch information
ingalls authored Aug 25, 2024
2 parents c79d26e + 5a3198b commit 1662eaa
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
16 changes: 15 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
FROM bluenviron/mediamtx:1.8.5-ffmpeg
FROM ubuntu:24.04

ENV MEDIA_VERSION=1.8.5

RUN apt-get upgrade \
&& apt-get update \
&& apt-get install -y curl

RUN curl -L "https://github.com/bluenviron/mediamtx/releases/download/v${MEDIA_VERSION}/mediamtx_v${MEDIA_VERSION}_linux_amd64.tar.gz" > /archive.tar.gz \
&& tar -xzvf /archive.tar.gz \
&& rm /archive.tar.gz

COPY mediamtx.yml /

COPY start /

ENTRYPOINT [ "/start" ]
14 changes: 14 additions & 0 deletions start
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash
#
# Add MediaConfig File
#

set -x
set -euo pipefail

# Copy EFS Persisted certs to Let's Encrypt Dir
if [ ! -e "/opt/mediamtx/mediamtx.yml" ]; then
cp "/mediamtx.yml" "/opt/mediamtx/mediamtx.yml"
fi;

/mediamtx /opt/mediamtx/mediamtx.yml

0 comments on commit 1662eaa

Please sign in to comment.