Update 'build/Dockerfile'
Some checks failed
ci/woodpecker/push/build Pipeline failed

This commit is contained in:
2023-03-16 12:00:34 +01:00
parent e40a3caf34
commit 9b868a84ca

View File

@@ -11,13 +11,7 @@ RUN export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y update \
&& apt-get install -y curl php php-xml php-curl php-xml php-mbstring \
&& useradd --create-home --uid=$USER_UID $USERNAME \
&& export NVM_DIR="/home/laravel/.nvm" \
&& mkdir $NVM_DIR \
&& chmod +x /usr/local/bin/start-container \
&& echo "install nvm and node" \
&& curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash \
&& if [ -z "$NODE_VERSION" ]; then NODE_VERSION="node"; fi \
&& bash $NVM_DIR/nvm.sh install $NODE_VERSION \
&& echo "install composer" \
&& curl -o composer-setup.php https://getcomposer.org/installer \
&& curl -o composer-setup.sig https://composer.github.io/installer.sig \
@@ -33,4 +27,10 @@ WORKDIR /var/www/html
USER $USERNAME
RUN echo "install nvm and node" \
&& curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash \
&& if [ -z "$NODE_VERSION" ]; then NODE_VERSION="node"; fi \
&& bash $NVM_DIR/nvm.sh
RUN nvm install $NODE_VERSION
ENTRYPOINT ["start-container"]