We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6455e3d commit f2862acCopy full SHA for f2862ac
Dockerfile
@@ -44,9 +44,6 @@ FROM php:8.4-apache AS api
44
LABEL stage=intermediate
45
WORKDIR /api
46
47
-COPY --from=extensions /usr/local/lib/php/extensions/ /usr/local/lib/php/extensions/
48
-COPY --from=extensions /usr/local/etc/php/conf.d/ /usr/local/etc/php/conf.d/
49
-
50
RUN set -eux; \
51
apt-get update; \
52
apt-get install -y --no-install-recommends zip unzip git; \
@@ -55,6 +52,8 @@ RUN set -eux; \
55
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
56
53
57
54
COPY --chown=www-data:www-data composer.json composer.lock /api/
+
+RUN chown -R www-data:www-data /api && mkdir -p /api/vendor && chown -R www-data:www-data /api/vendor
58
USER www-data
59
60
0 commit comments