update dockerfile
Some checks failed
Some checks failed
This commit is contained in:
@@ -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 \
|
||||||
|
|||||||
Reference in New Issue
Block a user