diff --git a/packages/env/lib/init-config.js b/packages/env/lib/init-config.js index fad8d5b36f183..efde002dc5838 100644 --- a/packages/env/lib/init-config.js +++ b/packages/env/lib/init-config.js @@ -124,6 +124,7 @@ function wordpressDockerFileContents( env, config ) { # Update apt sources for archived versions of Debian. # stretch (https://lists.debian.org/debian-devel-announce/2023/03/msg00006.html) +RUN touch /etc/apt/sources.list RUN sed -i 's|deb.debian.org/debian stretch|archive.debian.org/debian stretch|g' /etc/apt/sources.list RUN sed -i 's|security.debian.org/debian-security stretch|archive.debian.org/debian-security stretch|g' /etc/apt/sources.list RUN sed -i '/stretch-updates/d' /etc/apt/sources.list @@ -167,7 +168,7 @@ RUN adduser -h /home/$HOST_USERNAME -G $( getent group $HOST_GID | cut -d: -f1 ) # Install any dependencies we need in the container. ${ installDependencies( 'cli', env, config ) } - + # Switch back to the original user now that we're done. USER www-data @@ -200,6 +201,9 @@ RUN apt-get -qy update # Install some basic PHP dependencies. RUN apt-get -qy install $PHPIZE_DEPS && touch /usr/local/etc/php/php.ini +# Install git +RUN apt-get -qy install git + # Set up sudo so they can have root access. RUN apt-get -qy install sudo RUN echo "#$HOST_UID ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers`;