Skip to content

Commit

Permalink
Restore WP 6.2.2 composer state
Browse files Browse the repository at this point in the history
  • Loading branch information
mikethicke committed Dec 16, 2024
1 parent 0832af2 commit d8eac88
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Dockerfile.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
FROM php:8.2.26-fpm-alpine3.20 AS base

WORKDIR /app
RUN chown -R www-data:www-data /app

RUN apk update && \
apk add --no-cache \
Expand Down Expand Up @@ -79,8 +80,12 @@
ln -s /app/mu-plugins/* /app/site/web/app/mu-plugins/ && \
ln -s /app/themes/*/ /app/site/web/app/themes/

RUN mkdir -p /app && chown www-data:www-data /app
RUN mkdir -p /app/site && chown www-data:www-data /app/site
RUN mkdir -p /app/site/web && chown www-data:www-data /app/site/web
COPY --chown=www-data:www-data ./plugins /app/plugins
COPY --chown=www-data:www-data ./mu-plugins /app/mu-plugins
COPY --chown=www-data:www-data ./themes /app/themes
COPY --chown=www-data:www-data ./site/config /app/site/config
COPY --chown=www-data:www-data wp-cli.yml /app/
COPY --chown=www-data:www-data ./simplesamlphp /app/simplesamlphp
Expand All @@ -90,7 +95,6 @@
COPY --chown=www-data:www-data composer.json /app/
COPY --chown=www-data:www-data composer.lock /app/


# Linking uploads folders to EFS volume mounted at /media
RUN mkdir -p /media && \
chown www-data:www-data /media && \
Expand All @@ -115,7 +119,6 @@
cd /app/scripts/dev-scripts/content-export/ && composer install --no-dev --no-interaction --no-progress --optimize-autoloader && \
cd /app/themes/dahd-tainacan/ && composer install --no-dev --no-interaction --no-progress --optimize-autoloader && \
cd /app/plugins/wp-graphql-tax-query/ && composer install --no-dev --no-interaction --no-progress --optimize-autoloader && \
cd /app/plugins/wp-graphql-tax-query/ && composer install --no-dev --no-interaction --no-progress --optimize-autoloader && \
cd /app/themes/learningspace/ && composer install --no-dev --no-interaction --no-progress --optimize-autoloader

RUN cd /app/site/web/app/plugins/cc-client && npm ci && npm run build && \
Expand Down

0 comments on commit d8eac88

Please sign in to comment.