revert temp changes and fix error
Some checks failed
ci/woodpecker/manual/build Pipeline failed

This commit is contained in:
Ruben Momoa
2024-08-20 14:34:22 +02:00
parent 6550f811ea
commit 369e9e9c0d

View File

@@ -1,7 +1,7 @@
FROM ubuntu:latest FROM ubuntu:latest
ARG USERNAME=laravel ARG USERNAME=laravel
ARG USER_UID=1000 ARG USER_UID=1080
# node version number like "12.22.1" or empty for the latest version # node version number like "12.22.1" or empty for the latest version
ARG NODE_VERSION='' ARG NODE_VERSION=''
@@ -9,31 +9,26 @@ ARG NODE_VERSION=''
# composer version number like "2.1" or empty for the latest version # composer version number like "2.1" or empty for the latest version
ARG COMPOSER_VERSION='' ARG COMPOSER_VERSION=''
ENV NVM_DIR="/home/$USERNAME/.nvm" # disables asking for input
ARG DEBIAN_FRONTEND="noninteractive" ARG DEBIAN_FRONTEND="noninteractive"
ENV NVM_DIR="/home/$USERNAME/.nvm"
COPY start-container.sh /usr/local/bin/start-container COPY start-container.sh /usr/local/bin/start-container
RUN echo "$${DEBIAN_FRONTEND}" RUN apt-get -y update \
RUN echo "$${USERNAME}" apt-get install -y curl git 7zip php php-xml php-curl php-xml php-mbstring php-mysql php-gd \
RUN echo "$${USER_UID}" useradd --create-home --uid=${USER_UID} ${USERNAME} \
RUN echo "$$DEBIAN_FRONTEND" chmod +x /usr/local/bin/start-container \
RUN echo "$$USERNAME" echo "install composer" \
RUN echo "$$USER_UID" curl -o composer-setup.php https://getcomposer.org/installer \
RUN apt-get -y update curl -o composer-setup.sig https://composer.github.io/installer.sig \
RUN apt-get install -y curl git 7zip php php-xml php-curl php-xml php-mbstring php-mysql php-gd echo " composer-setup.php" >> composer-setup.sig \
RUN useradd --create-home --uid=${USER_UID} ${USERNAME} sha384sum -c composer-setup.sig \
RUN chmod +x /usr/local/bin/start-container if [ -n "$COMPOSER_VERSION" ]; then COMPOSER_VERSION="--${COMPOSER_VERSION}"; fi \
RUN echo "install composer" php composer-setup.php --install-dir=/usr/local/bin --filename=composer $COMPOSER_VERSION \
RUN curl -o composer-setup.php https://getcomposer.org/installer rm composer-setup.php composer-setup.sig /var/www/html/* \
RUN curl -o composer-setup.sig https://composer.github.io/installer.sig chown $USERNAME:$USERNAME /var/www/html \
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 EXPOSE 8080