-
Notifications
You must be signed in to change notification settings - Fork 19
/
Dockerfile.arm64
41 lines (36 loc) · 1.13 KB
/
Dockerfile.arm64
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
32
33
34
35
36
37
38
39
40
41
FROM ghcr.io/linuxserver/sonarr
LABEL maintainer="mdhiggins <[email protected]>"
ENV SMA_PATH /usr/local/sma
ENV SMA_RS Sonarr
ENV SMA_UPDATE false
ENV SMA_FFMPEG_PATH ffmpeg
ENV SMA_FFPROBE_PATH ffprobe
ENV SMA_FFMPEG_URL https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-arm64-static.tar.xz
# get python3 and git, and install python libraries
RUN \
apk update && \
apk add --no-cache \
git \
wget \
python3 \
py3-pip \
py3-virtualenv && \
# make directory
mkdir ${SMA_PATH} && \
# download repo
git config --global --add safe.directory ${SMA_PATH} && \
git clone https://github.com/mdhiggins/sickbeard_mp4_automator.git ${SMA_PATH} && \
# install pip, venv, and set up a virtual self contained python environment
python3 -m virtualenv ${SMA_PATH}/venv && \
${SMA_PATH}/venv/bin/pip install -r ${SMA_PATH}/setup/requirements.txt && \
# cleanup
apk del --purge && \
rm -rf \
/root/.cache \
/tmp/*
EXPOSE 8989
VOLUME /config
VOLUME /usr/local/sma/config
# update.py sets FFMPEG/FFPROBE paths, updates API key and Sonarr/Radarr settings in autoProcess.ini
COPY extras/ ${SMA_PATH}/
COPY root/ /