File size: 890 Bytes
7d8ba31
 
d9f0d1f
 
 
 
 
 
 
 
 
 
 
7d8ba31
d9f0d1f
 
 
7d8ba31
 
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
26
27
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"]