Update Docker file

This commit is contained in:
Knah Tsaeb 2024-07-02 17:28:30 +02:00 committed by Knah-Tsaeb
parent 70f4ea616e
commit ed90b31019

View file

@ -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 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/ 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 RUN chmod +x /usr/bin/start.sh
WORKDIR / RUN cp .docker/apache2/soshot.conf /etc/apache2/sites-available/soshot.conf
COPY .docker/apache2/soshot.conf /etc/apache2/sites-available/soshot.conf
RUN a2dissite 000-default.conf && a2ensite soshot.conf && a2enmod rewrite 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 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 EXPOSE 80