We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0bab17 commit 6ca0b68Copy full SHA for 6ca0b68
3 files changed
Dockerfile
@@ -12,3 +12,7 @@ RUN apt update \
12
13
# install composer
14
COPY --from=composer /usr/bin/composer /usr/bin/composer
15
+
16
+# setup entrypoint
17
+COPY entrypoint.sh /usr/local/bin/entrypoint.sh
18
+ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
docker-compose.yml
@@ -4,6 +4,6 @@ services:
4
tests:
5
build: ./
6
working_dir: /project
7
- command: bash -c "composer install && ./vendor/bin/phpunit"
+ entrypoint: ["/usr/local/bin/entrypoint.sh", "./vendor/bin/phpunit"]
8
volumes:
9
- ./:/project
entrypoint.sh
@@ -0,0 +1,6 @@
1
+#!/bin/sh
2
+set -e
3
+composer install --quiet
+exec "$@"
0 commit comments