From d289c06fc87566c8bb0ab238ebadf9adb4a16fc3 Mon Sep 17 00:00:00 2001 From: franknstayn Date: Sun, 27 Aug 2023 18:40:02 +0800 Subject: [PATCH] updated --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index fbaf9bc..e974294 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ ENV \ APP_DIR="/app" \ APP_PORT="80" -# the "app" directory (relative to Dockerfile) containers your Laravel app... +# the "app" directory (relative to Dockerfile) contains your Laravel app... COPY app/ $APP_DIR RUN apk add --update \ @@ -18,10 +18,10 @@ RUN apk add --update \ php-dom \ && rm -rf /var/cache/apk/* -RUN curl -sS https://getcomposer.org/installer | php -- \ - --install-dir=/usr/bin --filename=composer +# Download and make Composer executable +RUN curl -sS https://getcomposer.org/composer-stable.phar -o /usr/bin/composer && chmod +x /usr/bin/composer RUN cd $APP_DIR && composer install WORKDIR $APP_DIR -CMD php artisan serve --host=0.0.0.0 --port=$APP_PORT \ No newline at end of file +CMD php artisan serve --host=0.0.0.0 --port=$APP_PORT