-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile_centos7
More file actions
67 lines (59 loc) · 1.61 KB
/
Dockerfile_centos7
File metadata and controls
67 lines (59 loc) · 1.61 KB
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
60
61
62
63
64
65
66
FROM centos:7
LABEL maintainer "DI GREGORIO Nicolas <nicolas.digregorio@gmail.com>"
### Environment variables
ENV LANG='en_US.UTF-8' \
LANGUAGE='en_US.UTF-8' \
TERM='xterm' \
APPUSER='couchpotato' \
APPUID='10009' \
APPGID='10009'
# Copy config files
COPY root/ /
### Install Application
RUN set -x && \
chmod 1777 /tmp && \
. /usr/local/bin/docker-entrypoint-functions.sh && \
MYUSER=${APPUSER} && \
MYUID=${APPUID} && \
MYGID=${APPGID} && \
ConfigureUser && \
yum-config-manager --add-repo /tmp/custom.repo && \
yum install -y epel-release && \
yum update -y && \
yum install -y \
git \
gcc \
gcc-c++ \
python-devel \
python2-pip \
openssl-devel \
make \
&& \
pip --no-cache-dir install --upgrade pyopenssl && \
git clone --depth 1 https://github.com/CouchPotato/CouchPotatoServer/ /opt/couchpotato && \
yum history -y undo last && \
yum install -y ca-certificates \
python \
libxml2-python \
python-lxml \
unrar \
git \
su-exec \
&& \
mkdir /docker-entrypoint.d && \
chmod +x /usr/local/bin/docker-entrypoint.sh && \
ln -snf /usr/local/bin/docker-entrypoint.sh /docker-entrypoint.sh && \
yum clean all && \
rm -rf /opt/couchpotato/.git* \
/tmp/* \
/var/cache/yum/* \
/var/tmp/*
### Volume
VOLUME ["/config", "/downloads", "/movies"]
### Expose ports
EXPOSE 5050
### Running User: not used, managed by docker-entrypoint.sh
#USER couchpotato
### Start CouchPotato
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["couchpotato"]