Skip to content

Commit ecf5f84

Browse files
committed
refactor(dockerfile): adjust app copy path
Update Dockerfile COPY instructions to point explicitly to the 'app' directory after relocating application source files. This avoids unnecessary copying of unrelated files.
1 parent 93b3e2c commit ecf5f84

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ RUN a2enmod rewrite
1717
WORKDIR /var/www/html
1818

1919
# Copy composer files first for better layer caching
20-
#COPY composer.json composer.lock ./
20+
#COPY app/composer.json app/composer.lock ./
2121

2222
# Install PHP dependencies if composer is available
2323
# For now, we'll skip this since there are no dependencies beyond PHP
2424
# RUN composer install --no-dev --optimize-autoloader
2525

2626
# Copy application source code
27-
COPY . .
27+
COPY app/ .
2828

2929
# Set proper permissions
3030
RUN chown -R www-data:www-data /var/www/html \
File renamed without changes.

0 commit comments

Comments
 (0)