From d6546d6ecf29c90558d9865051fe6416c6c4878e Mon Sep 17 00:00:00 2001 From: Knah Tsaeb Date: Tue, 2 Jul 2024 17:28:30 +0200 Subject: [PATCH] Update Docker file --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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