Spaces:
Paused
Paused
Download Dockerfile from factorstudios/JRNET: direct link, hf CLI and curl.
- Browser
- Download file 946 Bytes
-
https://huggingface.co/spaces/factorstudios/JRNET/resolve/e83d7ccde1b9df52cf02f4d7d49524059656b00e/Dockerfile
- Command line
-
hf download hf://spaces/factorstudios/JRNET@e83d7ccde1b9df52cf02f4d7d49524059656b00e/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/factorstudios/JRNET/resolve/e83d7ccde1b9df52cf02f4d7d49524059656b00e/Dockerfile
946 Bytes
| FROM wordpress:6-php8.3-apache | |
| ENV DEBIAN_FRONTEND=noninteractive \ | |
| MARIADB_ROOT_PASSWORD=change-me-root \ | |
| WORDPRESS_DB_NAME=bemalearn \ | |
| WORDPRESS_DB_USER=bemalearn \ | |
| WORDPRESS_DB_PASSWORD=change-me-db \ | |
| WORDPRESS_DB_HOST=127.0.0.1 \ | |
| PORT=7860 | |
| RUN apt-get update \ | |
| && apt-get install -y --no-install-recommends mariadb-server mariadb-client curl ca-certificates \ | |
| && rm -rf /var/lib/apt/lists/* \ | |
| && curl -fsSL https://github.com/wp-cli/wp-cli/releases/latest/download/wp-cli.phar -o /usr/local/bin/wp \ | |
| && chmod +x /usr/local/bin/wp \ | |
| && a2enmod rewrite headers | |
| COPY bemalearn /var/www/html/wp-content/plugins/bemalearn | |
| COPY docker-entrypoint-space.sh /usr/local/bin/docker-entrypoint-space.sh | |
| RUN chmod +x /usr/local/bin/docker-entrypoint-space.sh \ | |
| && chown -R www-data:www-data /var/www/html/wp-content/plugins/bemalearn | |
| EXPOSE 7860 | |
| ENTRYPOINT ["/usr/local/bin/docker-entrypoint-space.sh"] | |