-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (26 loc) · 999 Bytes
/
Copy pathDockerfile
File metadata and controls
31 lines (26 loc) · 999 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
## Buildstage ##
FROM ghcr.io/linuxserver/baseimage-ubuntu:focal-ccbac383-ls117 as buildstage
LABEL maintainer="dhill <me@newdave.com>"
ENV SMA_PATH /usr/local/sma
ENV SMA_FFMPEG_PATH ffmpeg
ENV SMA_FFPROBE_PATH ffprobe
ENV SMA_FFMPEG_URL https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz
# get python3 and git, and install python libraries
RUN \
if [ -f /usr/bin/apt ]; then \
apt-get update && \
apt-get install -y git; \
elif [ -f /sbin/apk ]; then \
apk update && \
apk add --no-cache git; \
fi && \
# make directory
mkdir -p /root-layer${SMA_PATH} && \
# download repo
git config --global --add safe.directory ${SMA_PATH} && \
git clone https://github.com/mdhiggins/sickbeard_mp4_automator.git /root-layer${SMA_PATH}
# update.py sets FFMPEG/FFPROBE paths, updates API key and Sonarr/Radarr settings in autoProcess.ini
COPY extras/ /root-layer${SMA_PATH}/
COPY root/ /root-layer/
FROM scratch
COPY --from=buildstage /root-layer/ /