forked from forceedge01/behat-sql-extension
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
16 lines (13 loc) · 667 Bytes
/
Dockerfile
File metadata and controls
16 lines (13 loc) · 667 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM php:5.6-cli
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
RUN php -r "if (hash_file('sha384', 'composer-setup.php') === 'e0012edf3e80b6978849f5eff0d4b4e4c79ff1609dd1e613307e16318854d24ae64f26d17af3ef0bf7cfb710ca74755a') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
RUN php composer-setup.php
RUN php -r "unlink('composer-setup.php');"
RUN mv composer.phar /usr/bin/composer
RUN apt-get update && apt-get install -y git
WORKDIR '/app'
COPY composer.json .
COPY composer.lock .
RUN composer install --prefer-source
COPY . .
CMD ["composer", "run-script", "tests"]