-
-
Notifications
You must be signed in to change notification settings - Fork 30
/
Dockerfile
59 lines (55 loc) · 1.36 KB
/
Dockerfile
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
FROM ghcr.io/linuxserver/baseimage-alpine:3.13
# set version label
ARG BUILD_DATE
ARG VERSION
ARG BAZARR_VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="chbmb"
# hard set UTC in case the user does not define it
ENV TZ="Etc/UTC"
RUN \
echo "**** install build packages ****" && \
apk add --no-cache --virtual=build-dependencies \
g++ \
gcc \
libxml2-dev \
libxslt-dev \
py3-pip \
python3-dev && \
echo "**** install packages ****" && \
apk add --no-cache \
curl \
ffmpeg \
libxml2 \
libxslt \
python3 \
unrar \
unzip && \
echo "**** install bazarr ****" && \
if [ -z ${BAZARR_VERSION+x} ]; then \
BAZARR_VERSION=$(curl -sX GET "https://api.github.com/repos/morpheus65535/bazarr/releases/latest" \
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
fi && \
curl -o \
/tmp/bazarr.tar.gz -L \
"https://github.com/morpheus65535/bazarr/archive/${BAZARR_VERSION}.tar.gz" && \
mkdir -p \
/app/bazarr && \
tar xf \
/tmp/bazarr.tar.gz -C \
/app/bazarr --strip-components=1 && \
rm -Rf /app/bazarr/bin && \
echo "**** Install requirements ****" && \
pip3 install --no-cache-dir -U -r \
/app/bazarr/requirements.txt && \
echo "**** clean up ****" && \
apk del --purge \
build-dependencies && \
rm -rf \
/root/.cache \
/tmp/*
# add local files
COPY root/ /
# ports and volumes
EXPOSE 6767
VOLUME /config