Skip to content

Commit 0d9edcd

Browse files
committed
PUSH
-> Final fix :wesh:
1 parent 261e7db commit 0d9edcd

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

backend/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ RUN apt-get update && apt-get install -y \
2929

3030
RUN chown -R www-data:www-data /var/www/html \
3131
&& chmod -R 755 /var/www/html
32-
32+
3333
# Install Composer
3434
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
3535

3636
# Copy composer files first to leverage Docker cache
3737
COPY composer.json composer.lock ./
3838

3939
# Install dependencies
40-
RUN COMPOSER_ALLOW_SUPERUSER=1 composer install --no-dev --optimize-autoloader
40+
RUN COMPOSER_ALLOW_SUPERUSER=1 composer install --optimize-autoloader
4141

4242
# Copy rest of the application
4343
COPY . .

install.bash

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ docker-compose --env-file ./backend/storage/.env up -d --build
2525
chown -R www-data:www-data ./
2626
chmod -R 777 ./
2727

28+
# Update dependencies
29+
docker exec mythicalclient_backend bash -c "COMPOSER_ALLOW_SUPERUSER=1 composer install --optimize-autoloader"
30+
2831
# Migrations
2932
docker exec mythicalclient_backend bash -c "php mythicalclient migrate"
3033

0 commit comments

Comments
 (0)