From 34000c324a0f34565e1a6a767f05e64fb9234cf1 Mon Sep 17 00:00:00 2001 From: Ruben Momoa Date: Tue, 20 Aug 2024 14:14:16 +0200 Subject: [PATCH] temp --- Dockerfile | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/Dockerfile b/Dockerfile index 41db74f..a991f5c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,20 +13,20 @@ ENV NVM_DIR="/home/$USERNAME/.nvm" COPY start-container.sh /usr/local/bin/start-container -RUN export DEBIAN_FRONTEND=noninteractive \ -RUN apt-get -y update \ -RUN apt-get install -y curl git 7zip php php-xml php-curl php-xml php-mbstring php-mysql php-gd \ -RUN useradd --create-home --uid=$USER_UID $USERNAME \ -RUN chmod +x /usr/local/bin/start-container \ -RUN echo "install composer" \ -RUN curl -o composer-setup.php https://getcomposer.org/installer \ -RUN curl -o composer-setup.sig https://composer.github.io/installer.sig \ -RUN echo " composer-setup.php" >> composer-setup.sig \ -RUN sha384sum -c composer-setup.sig \ -RUN if [ -n "$COMPOSER_VERSION" ]; then COMPOSER_VERSION="--${COMPOSER_VERSION}"; fi \ -RUN php composer-setup.php --install-dir=/usr/local/bin --filename=composer $COMPOSER_VERSION \ -RUN rm composer-setup.php composer-setup.sig /var/www/html/* \ -RUN chown $USERNAME:$USERNAME /var/www/html \ +RUN export DEBIAN_FRONTEND=noninteractive +RUN apt-get -y update +RUN apt-get install -y curl git 7zip php php-xml php-curl php-xml php-mbstring php-mysql php-gd +RUN useradd --create-home --uid=$USER_UID $USERNAME +RUN chmod +x /usr/local/bin/start-container +RUN echo "install composer" +RUN curl -o composer-setup.php https://getcomposer.org/installer +RUN curl -o composer-setup.sig https://composer.github.io/installer.sig +RUN echo " composer-setup.php" >> composer-setup.sig +RUN sha384sum -c composer-setup.sig +RUN if [ -n "$COMPOSER_VERSION" ]; then COMPOSER_VERSION="--${COMPOSER_VERSION}"; fi +RUN php composer-setup.php --install-dir=/usr/local/bin --filename=composer $COMPOSER_VERSION +RUN rm composer-setup.php composer-setup.sig /var/www/html/* +RUN chown $USERNAME:$USERNAME /var/www/html EXPOSE 8080