This commit is contained in:
franknstayn
2023-08-27 18:40:02 +08:00
parent 980d5e158e
commit d289c06fc8

View File

@@ -4,7 +4,7 @@ ENV \
APP_DIR="/app" \ APP_DIR="/app" \
APP_PORT="80" 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 COPY app/ $APP_DIR
RUN apk add --update \ RUN apk add --update \
@@ -18,8 +18,8 @@ RUN apk add --update \
php-dom \ php-dom \
&& rm -rf /var/cache/apk/* && rm -rf /var/cache/apk/*
RUN curl -sS https://getcomposer.org/installer | php -- \ # Download and make Composer executable
--install-dir=/usr/bin --filename=composer RUN curl -sS https://getcomposer.org/composer-stable.phar -o /usr/bin/composer && chmod +x /usr/bin/composer
RUN cd $APP_DIR && composer install RUN cd $APP_DIR && composer install