Verified Commit ff3af644 authored by Martin Riedl's avatar Martin Riedl
Browse files

fix(Docker): switch from alpine to debian as base image

FFmpeg/FFprobe requires a proper glibc
parent 3acc2908
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
# syntax=docker/dockerfile:1
FROM alpine:3.16
FROM debian:12.0
ARG TARGETPLATFORM

# environment variables
@@ -8,12 +8,13 @@ ENV MMS_GROUP=martymediaserver
ENV MMS_UID=1001
ENV MMS_GID=1001

# CA certificates are used for SSL/TLS
RUN apk --no-cache add ca-certificates
# wget: required for ffmpeg//ffprobe download
# unzip: required for ffmpeg/ffprobe unpacking
RUN apt-get update && apt-get install -y wget unzip

# create new user and group
RUN addgroup -g "${MMS_GID}" "${MMS_GROUP}"
RUN adduser -D -H -u "${MMS_UID}" -G "${MMS_GROUP}" "${MMS_USER}"
RUN addgroup --gid "${MMS_GID}" "${MMS_GROUP}"
RUN adduser --disabled-password --no-create-home --uid "${MMS_UID}" --ingroup "${MMS_GROUP}" "${MMS_USER}"

# use new user for the following commands
USER ${MMS_USER}:${MMS_GROUP}