chore: improve container build and deployment configuration
- Add common system directories to .dockerignore to prevent accidental inclusion - Reorder Dockerfile instructions for better clarity and performance - Remove remote deployment targets from Makefile to simplify local development workflow
This commit is contained in:
@@ -22,11 +22,12 @@ RUN apk add --no-cache \
|
||||
# Create a symlink so 'php' command works
|
||||
RUN ln -sf /usr/bin/php84 /usr/bin/php
|
||||
|
||||
# Copy application files
|
||||
# Using a different target directory to avoid permission issues with /var/www in Alpine/Podman
|
||||
COPY . /app
|
||||
# Set working directory early
|
||||
WORKDIR /app
|
||||
|
||||
# Copy application files explicitly from the context
|
||||
COPY . /app
|
||||
|
||||
# Get Composer
|
||||
COPY --from=docker.io/composer:latest /usr/bin/composer /usr/bin/composer
|
||||
|
||||
|
||||
Reference in New Issue
Block a user