-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from R0Wi/docker-setup
Add docker based setup
- Loading branch information
Showing
12 changed files
with
2,034 additions
and
15 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
./public/demo | ||
./public/env.php |
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,2 +1,5 @@ | ||
public/env.php | ||
logs/polite.log | ||
logs/polite.log | ||
/vendor/ | ||
.phpunit.cache | ||
/coverage/ |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM php:8.2-apache | ||
|
||
# Set default logging to stdout so that logs can be shown via docker logs | ||
ENV LOG_FILE php://stdout | ||
|
||
# Use the default production configuration | ||
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" | ||
|
||
# Install php extension apcu | ||
RUN pecl install apcu \ | ||
&& docker-php-ext-enable apcu | ||
|
||
# Copy our application code | ||
COPY ./public /var/www/html | ||
COPY ./src /var/www/src | ||
|
||
# Activate the env file (configuration will be done via env-variables) | ||
RUN mv /var/www/src/FriendlyCaptcha/Lite/Env.template.php /var/www/src/FriendlyCaptcha/Lite/Env.php \ | ||
&& chown -R www-data:www-data /var/www/src |
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
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"name": "friendlycaptcha/friendly-lite-server", | ||
"description": "Lite server for Friendly Captcha", | ||
"require-dev": { | ||
"phpunit/phpunit": "^9.6" | ||
}, | ||
"license": "Apache 2.0 with Commons Attribution Clause", | ||
"authors": [ | ||
{ | ||
"name": "Friendly Captcha GmbH (www.friendlycaptcha.com)" | ||
} | ||
], | ||
"require": {}, | ||
"autoload": { | ||
"psr-4": { | ||
"FriendlyCaptcha\\Lite\\": "src/FriendlyCaptcha/Lite" | ||
}, | ||
"classmap": [ | ||
"src/" | ||
] | ||
} | ||
} |
Oops, something went wrong.