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 \
|
||||
nginx \
|
||||
supervisor \
|
||||
git \
|
||||
linux-headers \
|
||||
openssl-dev
|
||||
git
|
||||
|
||||
# Install PHP extensions
|
||||
# Install PHP extensions (handles all build deps automatically)
|
||||
RUN install-php-extensions \
|
||||
pdo_mysql \
|
||||
gd \
|
||||
@@ -62,10 +60,6 @@ COPY docker/entrypoint.sh /usr/local/bin/entrypoint.sh
|
||||
# Make entrypoint executable
|
||||
RUN chmod +x /usr/local/bin/entrypoint.sh
|
||||
|
||||
# Cleanup
|
||||
RUN apk del $PHPIZE_DEPS \
|
||||
&& rm -rf /var/cache/apk/*
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
||||
|
||||
Reference in New Issue
Block a user