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

Commit

Permalink
Merge pull request #3 from voucherifyio/pz/tests-1
Browse files Browse the repository at this point in the history
fix test, run as server
  • Loading branch information
p-zielinski authored Jan 18, 2024
2 parents 2b65ac8 + 369f89d commit 22417c1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ build/phplint.cache
/git_push.sh
/test-requirements.txt
/.env
/.idea/
6 changes: 1 addition & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ FROM composer:2.6.6 AS composer

WORKDIR /app

VOLUME /app/data

COPY . .

RUN composer install
Expand All @@ -17,6 +15,4 @@ WORKDIR /app

COPY --from=composer /app /app

VOLUME /app/data

CMD ["php", "./__tests__/index.php"]
CMD ["php", "-S", "0.0.0.0:5050", "./__tests__/index.php"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,7 @@ Class | Method | HTTP request | Description

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

## Author

Expand Down

0 comments on commit 22417c1

Please sign in to comment.