Browse Source

chore: remove the php7-xml extension as it is not being used by the project

Junior L. Botelho (JLB) 2 years ago
parent
commit
2706cf3eb0
2 changed files with 6 additions and 6 deletions
  1. 5 5
      Dockerfile
  2. 1 1
      docker/php/php.dockerfile

+ 5 - 5
Dockerfile

@@ -28,12 +28,12 @@ ENV TZ="America/New_York"
 ADD "." "/var/www/html"
 
 # Set permissions for script files as executable scripts inside 'docker/scripts' directory
-RUN   chmod u+x "${DOCKER_SCRIPTS}/php/prepare.sh" &&\
-      chmod u+x "${DOCKER_SCRIPTS}/server/prepare.sh" &&\
-      chmod u+x "${DOCKER_SCRIPTS}/entrypoint.sh" &&\
-      chmod u+x "${DOCKER_SCRIPTS}/attributes.sh"
+RUN chmod u+x "${DOCKER_SCRIPTS}/php/prepare.sh" &&\
+    chmod u+x "${DOCKER_SCRIPTS}/server/prepare.sh" &&\
+    chmod u+x "${DOCKER_SCRIPTS}/entrypoint.sh" &&\
+    chmod u+x "${DOCKER_SCRIPTS}/attributes.sh"
 
-RUN   apk add abuild-rootbld --no-cache
+RUN apk add gettext --no-cache
 
 # The following lines import all Dockerfiles from other folders so that they can be built together in the final build
 INCLUDE+ docker/php/php.dockerfile

+ 1 - 1
docker/php/php.dockerfile

@@ -49,7 +49,7 @@ ENV CURLOPT_VERBOSE=false
 
 # Install PHP-FPM using Alpine's package manager, apk
 # Configure PHP-FPM to listen on a Unix socket instead of a TCP port, which is more secure and efficient
-RUN apk add php7 php7-fpm php7-dom php7-curl php7-json php7-xml --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing &&\
+RUN apk add php7 php7-fpm php7-dom php7-curl php7-json --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing &&\
     sed -i 's/^\s*listen = 127.0.0.1:9000/listen = \/run\/php7\/php-fpm7.sock/' ${WWW_CONFIG} &&\
     sed -i 's/^\s*;\s*listen.owner = nobody/listen.owner = nginx/' ${WWW_CONFIG} &&\
     sed -i 's/^\s*;\s*listen.group = nobody/listen.group = nginx/' ${WWW_CONFIG} &&\