-
Notifications
You must be signed in to change notification settings - Fork 37
/
Dockerfile
39 lines (30 loc) · 1.29 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
FROM greyltc/lamp-aur
MAINTAINER Grey Christoforo <[email protected]>
# Report issues with this to the GitHub project: https://github.com/greyltc/docker-owncloud/issues
# Say thanks by adding a star or a comment here: https://registry.hub.docker.com/u/l3iggs/owncloud/
# and/or starring the project on GitHub
# uncomment this to update the container's mirrorlist
#RUN get-new-mirrors
# set environmnt variable defaults
ENV TARGET_SUBDIR owncloud
ENV ALLOW_INSECURE false
ENV OC_VERSION '*'
# do the install things
ADD installOwnCloud.sh /usr/sbin/install-owncloud
RUN install-owncloud
# add our config.php stub
ADD configs/config.php /usr/share/webapps/owncloud/config/config.php
RUN chown http:http /usr/share/webapps/owncloud/config/config.php; \
chmod 0640 /usr/share/webapps/owncloud/config/config.php
# add our cron stub
ADD configs/cron.conf /etc/cron.d/owncloud
# add our apache config stub
ADD configs/apache.conf /etc/httpd/conf/extra/owncloud.conf
# expose some important directories as volumes
#VOLUME ["/usr/share/webapps/owncloud/data"]
#VOLUME ["/etc/webapps/owncloud/config"]
#VOLUME ["/usr/share/webapps/owncloud/apps"]
# place your ssl cert files in here. name them server.key and server.crt
#VOLUME ["/root/sslKeys"]
# start the servers, then wait forever
CMD start-servers; sleep infinity