| | FROM php:8.2-apache |
| |
|
| | |
| | RUN apt-get update && apt-get install -y \ |
| | git \ |
| | libcurl4-openssl-dev \ |
| | pkg-config \ |
| | libssl-dev \ |
| | && docker-php-ext-install curl |
| |
|
| | |
| | RUN rm -rf /var/www/html/* |
| |
|
| | |
| | RUN --mount=type=secret,id=GITHUB_TOKEN,mode=0444,required=true \ |
| | git clone https://$(cat /run/secrets/GITHUB_TOKEN)@github.com/Hamed744/my-tts-website.git /var/www/html/ |
| |
|
| | |
| | RUN chown -R www-data:www-data /var/www/html \ |
| | && chmod -R 755 /var/www/html |
| |
|
| | |
| | RUN sed -i 's/80/7860/g' /etc/apache2/sites-available/000-default.conf /etc/apache2/ports.conf |
| |
|
| | EXPOSE 7860 |
| |
|
| | CMD ["apache2-foreground"] |