Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
samdark committed Oct 25, 2024
1 parent 8392f5d commit 47c8582
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ RUN <<SH
adduser -u ${UID} -D -S -G www-data www-data

# Set volume permissions
mkdir /data && chown -R www-data:www-data /data
mkdir /config && chown -R www-data:www-data /config
mkdir /app/runtime && chown -R www-data:www-data /app/runtime
mkdir -p /data /config /app/runtime && \
chown -R www-data:www-data /data /config /app/runtime

apk add --no-cache \
php-frankenphp-8.3-opcache \
Expand All @@ -24,7 +23,8 @@ RUN <<SH
php-frankenphp-8.3-openssl \
php-frankenphp-8.3-xml \
php-frankenphp-8.3-xmlwriter \
php-frankenphp-8.3-simplexml
php-frankenphp-8.3-simplexml \
php-frankenphp-8.3-pdo
SH

FROM base AS prod-builder
Expand All @@ -36,7 +36,7 @@ RUN --mount=type=cache,target=/tmp/cache \
<<SH
set -eo pipefail
set -x
composer install --no-dev --no-progress --no-interaction
composer install --no-dev --no-progress --no-interaction && \
rm composer.lock composer.json
SH

Expand All @@ -51,8 +51,7 @@ RUN <<SH
set -eo pipefail
set -x
apk add --no-cache \
php-frankenphp-8.3-xdebug \
php-frankenphp-8.3-pdo
php-frankenphp-8.3-xdebug
SH

COPY --from=composer /composer /usr/bin/composer
Expand Down
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@
!yii
!composer.json
!composer.lock
!.env*

0 comments on commit 47c8582

Please sign in to comment.