File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -29,15 +29,15 @@ RUN apt-get update && apt-get install -y \
29
29
30
30
RUN chown -R www-data:www-data /var/www/html \
31
31
&& chmod -R 755 /var/www/html
32
-
32
+
33
33
# Install Composer
34
34
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
35
35
36
36
# Copy composer files first to leverage Docker cache
37
37
COPY composer.json composer.lock ./
38
38
39
39
# Install dependencies
40
- RUN COMPOSER_ALLOW_SUPERUSER=1 composer install --no-dev -- optimize-autoloader
40
+ RUN COMPOSER_ALLOW_SUPERUSER=1 composer install --optimize-autoloader
41
41
42
42
# Copy rest of the application
43
43
COPY . .
Original file line number Diff line number Diff line change @@ -25,6 +25,9 @@ docker-compose --env-file ./backend/storage/.env up -d --build
25
25
chown -R www-data:www-data ./
26
26
chmod -R 777 ./
27
27
28
+ # Update dependencies
29
+ docker exec mythicalclient_backend bash -c " COMPOSER_ALLOW_SUPERUSER=1 composer install --optimize-autoloader"
30
+
28
31
# Migrations
29
32
docker exec mythicalclient_backend bash -c " php mythicalclient migrate"
30
33
You can’t perform that action at this time.
0 commit comments