-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathlinux-amd64.Dockerfile
More file actions
23 lines (19 loc) · 844 Bytes
/
linux-amd64.Dockerfile
File metadata and controls
23 lines (19 loc) · 844 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
ARG UPSTREAM_IMAGE
ARG UPSTREAM_TAG_SHA
FROM ${UPSTREAM_IMAGE}:${UPSTREAM_TAG_SHA}
EXPOSE 8989
ARG IMAGE_STATS
ENV IMAGE_STATS=${IMAGE_STATS} WEBUI_PORTS="8989/tcp"
RUN apk add --no-cache libintl sqlite-libs icu-libs
ARG VERSION
ARG VERSION_BRANCH
ARG VERSION_AMD64_URL
ARG PACKAGE_VERSION=${VERSION}
RUN mkdir "${APP_DIR}/bin" && \
curl -fsSL "${VERSION_AMD64_URL}" | tar xzf - -C "${APP_DIR}/bin" --strip-components=1 && \
rm -rf "${APP_DIR}/bin/Sonarr.Update" && \
echo -e "PackageVersion=${PACKAGE_VERSION}\nPackageAuthor=[hotio](https://github.com/hotio)\nUpdateMethod=Docker\nBranch=${VERSION_BRANCH}" > "${APP_DIR}/package_info" && \
chmod -R u=rwX,go=rX "${APP_DIR}" && \
chmod +x "${APP_DIR}/bin/Sonarr" "${APP_DIR}/bin/ffprobe"
COPY root/ /
RUN find /etc/s6-overlay/s6-rc.d -name "run*" -execdir chmod +x {} +