Manus commited on
Commit
7d8ba31
·
1 Parent(s): e3b6895

Deploy Bema Learn backend only

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -1
Dockerfile CHANGED
@@ -1,3 +1,5 @@
 
 
1
  FROM wordpress:6-php8.3-apache
2
 
3
  ENV DEBIAN_FRONTEND=noninteractive \
@@ -9,10 +11,12 @@ ENV DEBIAN_FRONTEND=noninteractive \
9
  PORT=7860
10
 
11
  RUN apt-get update \
12
- && apt-get install -y --no-install-recommends mariadb-server mariadb-client wp-cli curl ca-certificates \
13
  && rm -rf /var/lib/apt/lists/* \
14
  && a2enmod rewrite headers
15
 
 
 
16
  COPY bemalearn /var/www/html/wp-content/plugins/bemalearn
17
  COPY docker-entrypoint-space.sh /usr/local/bin/docker-entrypoint-space.sh
18
  RUN chmod +x /usr/local/bin/docker-entrypoint-space.sh \
 
1
+ FROM wordpress:cli-php8.3 AS wpcli
2
+
3
  FROM wordpress:6-php8.3-apache
4
 
5
  ENV DEBIAN_FRONTEND=noninteractive \
 
11
  PORT=7860
12
 
13
  RUN apt-get update \
14
+ && apt-get install -y --no-install-recommends mariadb-server mariadb-client curl ca-certificates \
15
  && rm -rf /var/lib/apt/lists/* \
16
  && a2enmod rewrite headers
17
 
18
+ COPY --from=wpcli /usr/local/bin/wp /usr/local/bin/wp
19
+
20
  COPY bemalearn /var/www/html/wp-content/plugins/bemalearn
21
  COPY docker-entrypoint-space.sh /usr/local/bin/docker-entrypoint-space.sh
22
  RUN chmod +x /usr/local/bin/docker-entrypoint-space.sh \