Download Dockerfile from freefor/dev: direct link, hf CLI and curl.
- Browser
- Download file 575 Bytes
-
https://huggingface.co/spaces/freefor/dev/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/freefor/dev/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/freefor/dev/resolve/main/Dockerfile
575 Bytes
| FROM php:8.3-apache | |
| RUN a2enmod rewrite | |
| RUN sed -i 's/Listen 80/Listen 8080/' /etc/apache2/ports.conf && \ | |
| sed -i 's/:80>/:8080>/' /etc/apache2/sites-available/000-default.conf | |
| RUN echo '<Directory /var/www/html>\n\ | |
| AllowOverride All\n\ | |
| </Directory>' >> /etc/apache2/sites-available/000-default.conf | |
| RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer | |
| WORKDIR /var/www/html | |
| COPY . /var/www/html | |
| RUN chmod -R 777 /var/www/html | |
| COPY .htaccess /var/www/html/.htaccess | |
| EXPOSE 8080 | |
| CMD ["apache2-foreground"] | |