Artples commited on
Commit
aa95bba
·
verified ·
1 Parent(s): 3c112e4

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -1
Dockerfile CHANGED
@@ -7,7 +7,13 @@ RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf \
7
  && sed -i "s/:80/:${APACHE_PORT}/" /etc/apache2/sites-available/000-default.conf
8
 
9
  RUN apt-get update \
10
- && apt-get install -y --no-install-recommends mariadb-server mariadb-client dos2unix \
 
 
 
 
 
 
11
  && rm -rf /var/lib/apt/lists/*
12
 
13
  RUN { \
@@ -19,6 +25,14 @@ RUN { \
19
  echo "innodb_file_per_table=1"; \
20
  } > /etc/mysql/mariadb.conf.d/99-hf-space.cnf
21
 
 
 
 
 
 
 
 
 
22
  COPY start.sh /start.sh
23
  RUN dos2unix /start.sh && chmod +x /start.sh
24
 
 
7
  && sed -i "s/:80/:${APACHE_PORT}/" /etc/apache2/sites-available/000-default.conf
8
 
9
  RUN apt-get update \
10
+ && apt-get install -y --no-install-recommends \
11
+ mariadb-server mariadb-client \
12
+ redis-server \
13
+ cron \
14
+ ffmpeg \
15
+ php-apcu \
16
+ dos2unix \
17
  && rm -rf /var/lib/apt/lists/*
18
 
19
  RUN { \
 
25
  echo "innodb_file_per_table=1"; \
26
  } > /etc/mysql/mariadb.conf.d/99-hf-space.cnf
27
 
28
+ RUN printf "*/5 * * * * www-data php -f /var/www/html/cron.php >/dev/null 2>&1\n" > /etc/cron.d/nextcloud \
29
+ && chmod 0644 /etc/cron.d/nextcloud
30
+
31
+ RUN mkdir -p /docker-entrypoint-hooks.d/post-installation
32
+ COPY post-installation/10-tune.sh /docker-entrypoint-hooks.d/post-installation/10-tune.sh
33
+ RUN dos2unix /docker-entrypoint-hooks.d/post-installation/10-tune.sh \
34
+ && chmod +x /docker-entrypoint-hooks.d/post-installation/10-tune.sh
35
+
36
  COPY start.sh /start.sh
37
  RUN dos2unix /start.sh && chmod +x /start.sh
38