Browse Source

Initial import

commit
b7e71de074
2 changed files with 46 additions and 0 deletions
  1. 24
    0
      Dockerfile
  2. 22
    0
      supervisord.conf

+ 24
- 0
Dockerfile View File

@@ -0,0 +1,24 @@
1
+FROM nextcloud:apache
2
+
3
+RUN echo "deb http://ftp.debian.org/debian jessie-backports main" >> /etc/apt/sources.list \
4
+    && apt-get update && apt-get install -y \
5
+        supervisor \
6
+        ffmpeg \
7
+        libmagickwand-dev \
8
+        libgmp3-dev \
9
+        libc-client-dev \
10
+        libkrb5-dev \
11
+        smbclient \
12
+        libsmbclient-dev \
13
+#       LibreOffice \
14
+    && rm -rf /var/lib/apt/lists/* \
15
+    && docker-php-ext-configure imap --with-kerberos --with-imap-ssl \
16
+    && ln -s "/usr/include/$(dpkg-architecture --query DEB_BUILD_MULTIARCH)/gmp.h" /usr/include/gmp.h \
17
+    && docker-php-ext-install bz2 gmp imap \
18
+    && pecl install imagick smbclient \
19
+    && docker-php-ext-enable imagick smbclient \
20
+    && mkdir /var/log/supervisord /var/run/supervisord
21
+
22
+COPY supervisord.conf /etc/supervisor/supervisord.conf
23
+
24
+CMD ["/usr/bin/supervisord"]

+ 22
- 0
supervisord.conf View File

@@ -0,0 +1,22 @@
1
+[supervisord]
2
+nodaemon=true
3
+logfile=/var/log/supervisord/supervisord.log
4
+pidfile=/var/run/supervisord/supervisord.pid
5
+childlogdir=/var/log/supervisord/
6
+logfile_maxbytes=50MB                           ; maximum size of logfile before rotation
7
+logfile_backups=10                              ; number of backed up logfiles
8
+loglevel=error
9
+
10
+[program:apache2]
11
+stdout_logfile=/dev/stdout
12
+stdout_logfile_maxbytes=0
13
+stderr_logfile=/dev/stderr
14
+stderr_logfile_maxbytes=0
15
+command=apache2-foreground
16
+
17
+[program:cron]
18
+stdout_logfile=/dev/stdout
19
+stdout_logfile_maxbytes=0
20
+stderr_logfile=/dev/stderr
21
+stderr_logfile_maxbytes=0
22
+command=/cron.sh

Loading…
Cancel
Save