test
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -17,22 +17,24 @@ RUN apk add --no-cache \
|
|||||||
php84-xml \
|
php84-xml \
|
||||||
php84-xmlwriter \
|
php84-xmlwriter \
|
||||||
php84-session \
|
php84-session \
|
||||||
|
git \
|
||||||
curl
|
curl
|
||||||
|
|
||||||
# Create a symlink so 'php' command works
|
# Create a symlink so 'php' command works
|
||||||
RUN ln -sf /usr/bin/php84 /usr/bin/php
|
RUN ln -sf /usr/bin/php84 /usr/bin/php
|
||||||
|
|
||||||
# Set working directory early
|
# Set working directory
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Copy application files explicitly from the context
|
# Copy application files
|
||||||
COPY . /app
|
COPY . /app
|
||||||
|
|
||||||
# Get Composer
|
# Get Composer
|
||||||
COPY --from=docker.io/composer:latest /usr/bin/composer /usr/bin/composer
|
COPY --from=docker.io/composer:latest /usr/bin/composer /usr/bin/composer
|
||||||
|
|
||||||
# Laravel permission fix
|
# Clean up unnecessary directories and fix permissions
|
||||||
RUN chmod -R 775 /app/storage /app/bootstrap/cache
|
RUN rm -rf /app/.circleci /app/.github && \
|
||||||
|
chmod -R 775 /app/storage /app/bootstrap/cache
|
||||||
|
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user