-
Notifications
You must be signed in to change notification settings - Fork 560
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* test: add test-docker rule
- Loading branch information
Bilal Boussayoud
authored
Aug 11, 2022
1 parent
94aa139
commit 10c7f8b
Showing
2 changed files
with
11 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
FROM php:7.4 | ||
|
||
RUN apt-get update -y && apt-get install -y zip | ||
|
||
RUN mkdir /twilio | ||
WORKDIR /twilio | ||
ENV PATH="vendor/bin:$PATH" | ||
|
||
COPY src src | ||
COPY tests tests | ||
COPY composer* ./ | ||
|
||
RUN curl --silent --show-error https://getcomposer.org/installer | php | ||
RUN mv composer.phar /usr/local/bin/composer | ||
RUN composer install --no-dev | ||
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer | ||
RUN composer install --prefer-dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters