Skip to content

Commit

Permalink
Some docker fixes, fix bad composer config merge
Browse files Browse the repository at this point in the history
  • Loading branch information
gdraynz committed Jun 4, 2024
1 parent 7b0073b commit bc6e78d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
run: composer validate

- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
run: composer install --prefer-dist --no-progress

- name: Prepare unittests configuration
run: sed -i 's/{MYVERSION}/${{ matrix.php.unittest-version }}/g' phpunit.ci.xml
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ RUN apt update && \
RUN usermod -u 1000 www-data
RUN groupmod -g 1000 www-data

RUN mkdir -p /app && chown -R www-data:www-data /app
RUN mkdir -p /app/vendor && chown -R www-data:www-data /app

USER www-data
WORKDIR /app
Expand All @@ -27,4 +27,4 @@ COPY --link .docker/php.ini /usr/local/etc/php/php.ini

COPY --from=composer /usr/bin/composer /usr/bin/composer
COPY --link composer.json ./
RUN composer install --prefer-dist --no-progress --no-suggest
RUN composer install --prefer-dist --no-progress
4 changes: 1 addition & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"config": {
},
"lock": false
}
}

0 comments on commit bc6e78d

Please sign in to comment.