test
This commit is contained in:
11
Dockerfile
11
Dockerfile
@@ -22,17 +22,16 @@ RUN apk add --no-cache \
|
||||
# Create a symlink so 'php' command works
|
||||
RUN ln -sf /usr/bin/php84 /usr/bin/php
|
||||
|
||||
WORKDIR /var/www
|
||||
# Copy application files
|
||||
# Using a different target directory to avoid permission issues with /var/www in Alpine/Podman
|
||||
COPY . /app
|
||||
WORKDIR /app
|
||||
|
||||
# Get Composer
|
||||
COPY --from=docker.io/composer:latest /usr/bin/composer /usr/bin/composer
|
||||
|
||||
# Copy only the application files
|
||||
# The .dockerignore will prevent it from touching restricted system folders
|
||||
COPY . /var/www
|
||||
|
||||
# Laravel permission fix
|
||||
RUN chmod -R 775 /var/www/storage /var/www/bootstrap/cache
|
||||
RUN chmod -R 775 /app/storage /app/bootstrap/cache
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
|
||||
Reference in New Issue
Block a user