-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathDockerfile
31 lines (23 loc) · 994 Bytes
/
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
# Centos OwnCloud latest
FROM centos:centos6
MAINTAINER Tobias Sgoff
#RUN yum -y update
RUN yum -y install https://anorien.csc.warwick.ac.uk/mirrors/epel/6/i386/epel-release-6-8.noarch.rpm
RUN yum -y install http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
RUN yum -y install nginx wget tar bzip2 unzip
RUN yum -y install php-fpm php-gd php-mysqlnd php-mbstring php-xml php-ldap --enablerepo=remi
RUN sed -i 's/user = apache/user = nginx/' /etc/php-fpm.d/www.conf
RUN sed -i 's/group = apache/group = nginx/' /etc/php-fpm.d/www.conf
RUN yum -y update --enablerepo=remi
RUN chown nginx:nginx /var/lib/php/session/
RUN wget https://github.com/YOURLS/YOURLS/archive/master.zip
RUN unzip master.zip
RUN mv YOURLS-master /usr/share/nginx/yourls
RUN chown -R nginx:nginx /usr/share/nginx/yourls
RUN rm master.zip
ADD default.conf /etc/nginx/conf.d/default.conf
RUN service nginx start && service php-fpm start
ADD init.sh /init.sh
RUN chmod +x /init.sh
EXPOSE 80
CMD ["/init.sh"]