forked from linuxserver-archive/docker-couchpotato
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.aarch64
executable file
·41 lines (36 loc) · 1.05 KB
/
Dockerfile.aarch64
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/baseimage-alpine:arm64v8-3.13
# set version label
ARG BUILD_DATE
ARG VERSION
ARG COUCHPOTATO_RELEASE
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="aptalca"
# set python to use utf-8 rather than ascii.
ENV PYTHONIOENCODING="UTF-8"
RUN \
echo "**** install packages ****" && \
apk add --no-cache \
curl \
python2 \
unrar \
unzip && \
echo "**** install app ****" && \
mkdir -p \
/app/couchpotato && \
if [ -z ${COUCHPOTATO_RELEASE+x} ]; then \
COUCHPOTATO_RELEASE=$(curl -sX GET "https://api.github.com/repos/CouchPotato/CouchPotatoServer/commits/master" \
| awk '/sha/{print $4;exit}' FS='[""]'); \
fi && \
curl -o \
/tmp/couchpotato.tar.gz -L \
"https://github.com/CouchPotato/CouchPotatoServer/archive/${COUCHPOTATO_RELEASE}.tar.gz" && \
tar xf /tmp/couchpotato.tar.gz -C \
/app/couchpotato --strip-components=1 && \
echo "**** Cleanup ****" && \
rm -Rf /tmp/*
# add local files
COPY root/ /
# ports and volumes
EXPOSE 5050
WORKDIR /app/couchpotato
VOLUME /config