fix: remove broken apk del PHPIZE_DEPS and unnecessary build deps from Dockerfile
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -30,11 +30,9 @@ COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr
|
|||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache \
|
||||||
nginx \
|
nginx \
|
||||||
supervisor \
|
supervisor \
|
||||||
git \
|
git
|
||||||
linux-headers \
|
|
||||||
openssl-dev
|
|
||||||
|
|
||||||
# Install PHP extensions
|
# Install PHP extensions (handles all build deps automatically)
|
||||||
RUN install-php-extensions \
|
RUN install-php-extensions \
|
||||||
pdo_mysql \
|
pdo_mysql \
|
||||||
gd \
|
gd \
|
||||||
@@ -62,10 +60,6 @@ COPY docker/entrypoint.sh /usr/local/bin/entrypoint.sh
|
|||||||
# Make entrypoint executable
|
# Make entrypoint executable
|
||||||
RUN chmod +x /usr/local/bin/entrypoint.sh
|
RUN chmod +x /usr/local/bin/entrypoint.sh
|
||||||
|
|
||||||
# Cleanup
|
|
||||||
RUN apk del $PHPIZE_DEPS \
|
|
||||||
&& rm -rf /var/cache/apk/*
|
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|
||||||
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
||||||
|
|||||||
Reference in New Issue
Block a user