Download Dockerfile from devin15/ittools: direct link, hf CLI and curl.
- Browser
- Download file 834 Bytes
-
https://huggingface.co/spaces/devin15/ittools/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/devin15/ittools/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/devin15/ittools/resolve/main/Dockerfile
834 Bytes
| FROM php:8.0-apache | |
| WORKDIR /var/www/html | |
| RUN apt-get update && apt-get install -y \ | |
| git \ | |
| unzip \ | |
| libonig-dev \ | |
| libzip-dev \ | |
| && docker-php-ext-install pdo pdo_mysql mbstring zip \ | |
| && a2enmod rewrite | |
| RUN git clone https://codeberg.org/kevin21/ittools.git . | |
| RUN sed -i 's|/var/www/html|/var/www/html/public|g' /etc/apache2/sites-available/000-default.conf | |
| #RUN #sed -i '/<\/VirtualHost>/i RewriteEngine On\nRewriteRule ^/admin(.*)$ https://linux.do/u/f-droid [R=301,L]' /etc/apache2/sites-available/000-default.conf | |
| RUN sed -i 's/Listen 80/Listen 8080/' /etc/apache2/ports.conf | |
| RUN sed -i 's/<VirtualHost \*:80>/<VirtualHost \*:8080>/' /etc/apache2/sites-available/000-default.conf | |
| RUN chmod -R 777 /var/www/html | |
| RUN apt-get clean && rm -rf /var/lib/apt/lists/* | |
| EXPOSE 8080 | |
| CMD ["apache2-foreground"] | |