diff --git a/Dockerfile b/Dockerfile index 2b53415..4ba31b5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,14 +17,13 @@ WORKDIR /var/www/ RUN git clone https://forge.leslibres.org/Knah-Tsaeb/Soshot.git --branch dev --single-branch --depth 1 . RUN composer install --no-dev && chown -R www-data:www-data /var/www/ -COPY .docker/start.sh /usr/bin/start.sh +RUN cp .docker/start.sh /usr/bin/start.sh RUN chmod +x /usr/bin/start.sh -WORKDIR / - -COPY .docker/apache2/soshot.conf /etc/apache2/sites-available/soshot.conf +RUN cp .docker/apache2/soshot.conf /etc/apache2/sites-available/soshot.conf RUN a2dissite 000-default.conf && a2ensite soshot.conf && a2enmod rewrite +WORKDIR / RUN echo '*/4 * * * * www-data php /var/www/bin/thumbShoter.php' > /etc/cron.d/soshot && chmod 0644 /etc/cron.d/soshot && crontab /etc/cron.d/soshot EXPOSE 80