JRNET / Dockerfile
Manus
Deploy Bema Learn backend only
d9f0d1f
Raw History Blame
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"]