Skip to content

Commit c50a167

Browse files
authored
improved local test methods (#18)
1 parent 784438c commit c50a167

15 files changed

+178
-26
lines changed

.docker/Dockerfile-php7.0

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM php:7.0-cli-alpine
2+
3+
COPY ./../.. /usr/src/myapp
4+
WORKDIR /usr/src/myapp
5+
6+
RUN apk --no-cache add curl zip
7+
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
8+
RUN composer install

.docker/Dockerfile-php7.1

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM php:7.1-cli-alpine
2+
3+
COPY ./../.. /usr/src/myapp
4+
WORKDIR /usr/src/myapp
5+
6+
RUN apk --no-cache add curl zip
7+
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
8+
RUN composer install

.docker/Dockerfile-php7.2

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM php:7.2-cli-alpine
2+
3+
COPY ./../.. /usr/src/myapp
4+
WORKDIR /usr/src/myapp
5+
6+
RUN apk --no-cache add curl zip
7+
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
8+
RUN composer install

.docker/Dockerfile-php7.3

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM php:7.3-cli-alpine
2+
3+
COPY ./../.. /usr/src/myapp
4+
WORKDIR /usr/src/myapp
5+
6+
RUN apk --no-cache add curl zip
7+
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
8+
RUN composer install

.docker/Dockerfile-php7.4

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM php:7.4-cli-alpine
2+
3+
COPY ./../.. /usr/src/myapp
4+
WORKDIR /usr/src/myapp
5+
6+
RUN apk --no-cache add curl zip
7+
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
8+
RUN composer install

.docker/Dockerfile-php8.0

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM php:8.0-cli-alpine
2+
3+
COPY ./../.. /usr/src/myapp
4+
WORKDIR /usr/src/myapp
5+
6+
RUN apk --no-cache add curl zip
7+
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
8+
RUN composer install

.docker/Dockerfile-php8.1

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM php:8.1-cli-alpine
2+
3+
COPY ./../.. /usr/src/myapp
4+
WORKDIR /usr/src/myapp
5+
6+
RUN apk --no-cache add curl zip
7+
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
8+
RUN composer install

.docker/Dockerfile-php8.2

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM php:8.2-cli-alpine
2+
3+
COPY ./../.. /usr/src/myapp
4+
WORKDIR /usr/src/myapp
5+
6+
RUN apk --no-cache add curl zip
7+
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
8+
RUN composer install

.docker/Dockerfile-php8.3

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM php:8.3-cli-alpine
2+
3+
COPY ./../.. /usr/src/myapp
4+
WORKDIR /usr/src/myapp
5+
6+
RUN apk --no-cache add curl zip
7+
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
8+
RUN composer install

.dockerignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.docker
2+
.dockerignore
3+
.git
4+
.github
5+
composer.lock
6+
docker-compose.yml
7+
vendor/

0 commit comments

Comments
 (0)