Spaces:
Paused
Paused
Download Dockerfile from factorstudios/JRNET: direct link, hf CLI and curl.
- Browser
- Download file 890 Bytes
-
https://huggingface.co/spaces/factorstudios/JRNET/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/factorstudios/JRNET/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/factorstudios/JRNET/resolve/main/Dockerfile
890 Bytes
| FROM wordpress:cli-php8.3 AS wpcli | |
| 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/* \ | |
| && a2enmod rewrite headers | |
| COPY --from=wpcli /usr/local/bin/wp /usr/local/bin/wp | |
| 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"] | |