Spaces:
Paused
Paused
File size: 946 Bytes
d9f0d1f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | 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"]
|