Commit 9fc2c299 authored by Fabio Montefuscolo's avatar Fabio Montefuscolo

reforça o que é possível reforçar

parent 9830a934
......@@ -10,8 +10,8 @@ RUN { \
echo 'opcache.enable_cli=1'; \
} > /usr/local/etc/php/conf.d/opcache-recommended.ini
RUN curl -o tiki-wiki.tar.gz 'http://ufpr.dl.sourceforge.net/project/tikiwiki/Tiki_12.x_Altair/12.9/tiki-12.9.tar.gz' \
&& tar -C /var/www/html/ -zxvf tiki-wiki.tar.gz --strip 1 \
RUN curl -o tiki-wiki.tar.gz 'http://ufpr.dl.sourceforge.net/project/tikiwiki/Tiki_12.x_Altair/12.9/tiki-12.9.tar.gz'
RUN tar -C /var/www/html -zxvf tiki-wiki.tar.gz --strip 1 \
&& rm tiki-wiki.tar.gz
WORKDIR /var/www/html/
......@@ -27,9 +27,25 @@ RUN { \
echo " \$client_charset = 'utf8';"; \
} > db/local.php
RUN /bin/bash setup.sh insane
RUN /bin/bash htaccess.sh
RUN chown -R root:root /var \
&& find /var/www/html -type f -exec chmod 644 {} \; \
&& find /var/www/html -type d -exec chmod 755 {} \; \
&& chown -R www-data db \
&& chown -R www-data dump \
&& chown -R www-data img/wiki \
&& chown -R www-data img/wiki_up \
&& chown -R www-data img/trackers \
&& chown -R www-data modules/cache \
&& chown -R www-data temp \
&& chown -R www-data temp/cache \
&& chown -R www-data templates_c \
&& chown -R www-data whelp
EXPOSE 80 443
COPY docker-entrypoint.sh /entrypoint.sh
VOLUME ['/tmp']
EXPOSE 80 443
ENTRYPOINT ["/entrypoint.sh"]
CMD ["apache2-foreground"]
#!/bin/bash
if [ "$OPCACHE" = "false" ];
then
echo "php_flag opcache.enable Off" >> /var/www/html/.htaccess
fi
exec "$@"
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment