Skip to content

Commit

Permalink
PUSH
Browse files Browse the repository at this point in the history
-> Final fix :wesh:
  • Loading branch information
NaysKutzu committed Nov 24, 2024
1 parent 261e7db commit 0d9edcd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ RUN apt-get update && apt-get install -y \

RUN chown -R www-data:www-data /var/www/html \
&& chmod -R 755 /var/www/html

# Install Composer
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer

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

# Install dependencies
RUN COMPOSER_ALLOW_SUPERUSER=1 composer install --no-dev --optimize-autoloader
RUN COMPOSER_ALLOW_SUPERUSER=1 composer install --optimize-autoloader

# Copy rest of the application
COPY . .
Expand Down
3 changes: 3 additions & 0 deletions install.bash
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ docker-compose --env-file ./backend/storage/.env up -d --build
chown -R www-data:www-data ./
chmod -R 777 ./

# Update dependencies
docker exec mythicalclient_backend bash -c "COMPOSER_ALLOW_SUPERUSER=1 composer install --optimize-autoloader"

# Migrations
docker exec mythicalclient_backend bash -c "php mythicalclient migrate"

Expand Down

0 comments on commit 0d9edcd

Please sign in to comment.