update dockerfile
Some checks failed
Build, Push and Deploy / build-and-push (push) Failing after 2m15s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 15s
Build, Push and Deploy / deploy-staging (push) Has been skipped
Build, Push and Deploy / deploy-production (push) Has been skipped

This commit is contained in:
2026-04-18 16:02:16 +07:00
parent 62417c44be
commit e449146306

View File

@@ -9,6 +9,8 @@ RUN apk add --no-cache \
libpng-dev \ libpng-dev \
libjpeg-turbo-dev \ libjpeg-turbo-dev \
freetype-dev \ freetype-dev \
libxml2-dev \
icu-dev \
oniguruma-dev \ oniguruma-dev \
git \ git \
curl \ curl \
@@ -23,7 +25,10 @@ RUN apk add --no-cache \
bcmath \ bcmath \
gd \ gd \
exif \ exif \
pcntl pcntl \
xml \
dom \
intl
# Configure git to allow safe directory # Configure git to allow safe directory
RUN git config --global --add safe.directory /var/www/html RUN git config --global --add safe.directory /var/www/html
@@ -34,7 +39,7 @@ COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
WORKDIR /var/www/html WORKDIR /var/www/html
# Copy ONLY composer files first # Copy ONLY composer files first
COPY composer.json ./ COPY composer.json composer.lock ./
# Create storage and bootstrap directories needed for composer scripts # Create storage and bootstrap directories needed for composer scripts
RUN mkdir -p storage/framework/cache \ RUN mkdir -p storage/framework/cache \