Skip to content
This repository was archived by the owner on Sep 3, 2024. It is now read-only.

Commit 22417c1

Browse files
authored
Merge pull request #3 from voucherifyio/pz/tests-1
fix test, run as server
2 parents 2b65ac8 + 369f89d commit 22417c1

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@ build/phplint.cache
2727
/git_push.sh
2828
/test-requirements.txt
2929
/.env
30+
/.idea/

Dockerfile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ FROM composer:2.6.6 AS composer
33

44
WORKDIR /app
55

6-
VOLUME /app/data
7-
86
COPY . .
97

108
RUN composer install
@@ -17,6 +15,4 @@ WORKDIR /app
1715

1816
COPY --from=composer /app /app
1917

20-
VOLUME /app/data
21-
22-
CMD ["php", "./__tests__/index.php"]
18+
CMD ["php", "-S", "0.0.0.0:5050", "./__tests__/index.php"]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,7 @@ Class | Method | HTTP request | Description
882882

883883
1. Copy `.env.example` to `.env` and fill in the values.
884884
2. Run `docker build -t php .` to build the image.
885-
3. Run `docker run --rm php` to run the tests and delete container immediately after.
885+
3. Run `docker run -p 5050:5050 --rm php` to run the tests and delete container immediately after.
886886

887887
## Author
888888

0 commit comments

Comments
 (0)