File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,10 @@ RUN docker-php-ext-install opcache && \
9393ARG PILLOW_VERSION=11.3.0
9494ARG PILLOW_AVIF_PLUGIN_VERSION=1.5.2
9595RUN pip3 install --no-cache-dir --upgrade pip && \
96- pip3 install numpy pillow==${PILLOW_VERSION} pillow-avif-plugin==${PILLOW_AVIF_PLUGIN_VERSION}
96+ pip3 install numpy pillow==${PILLOW_VERSION} && \
97+ if [ "$TARGETPLATFORM" = "linux/amd64" -o "$TARGETPLATFORM" = "linux/arm64" ]; then \
98+ pip3 install pillow-avif-plugin==${PILLOW_AVIF_PLUGIN_VERSION}; \
99+ fi
97100
98101# To creates the necessary links and cache in /usr/local/lib
99102RUN ldconfig /usr/local/lib
@@ -109,6 +112,6 @@ RUN chmod +x /usr/local/bin/docker-entrypoint
109112
110113RUN rm -f /etc/nginx/conf.d/default.conf || true
111114
112- ENV PORT 80
115+ ENV PORT= 80
113116WORKDIR /var/www/html
114117ENTRYPOINT ["docker-entrypoint" , "/init" ]
You can’t perform that action at this time.
0 commit comments