-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
René Penner
committed
Jun 16, 2019
1 parent
55be07b
commit 75a178d
Showing
10 changed files
with
2,371 additions
and
0 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 @@ | ||
/vendor | ||
/.idea |
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:7.3.6-alpine | ||
|
||
RUN apk update && \ | ||
apk --no-cache add git | ||
|
||
RUN curl --silent --show-error https://getcomposer.org/installer | php && \ | ||
mv composer.phar /usr/local/bin/composer && \ | ||
chmod +x /usr/local/bin/composer | ||
|
||
COPY composer.* ./ | ||
RUN composer install --no-dev --optimize-autoloader --quiet --no-interaction | ||
|
||
COPY public public/ | ||
COPY src src/ | ||
|
||
|
||
EXPOSE 80 | ||
|
||
CMD ["php", "-S", "0.0.0.0:80", "-t", "./public", "./public/index.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 |
---|---|---|
@@ -0,0 +1 @@ | ||
# PHP Standalone Slim4 App |
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,39 @@ | ||
{ | ||
"name": "slim/slim-skeleton", | ||
"description": "A Slim Framework skeleton application for rapid development", | ||
"license": "MIT", | ||
"require": { | ||
"php": ">=7.2", | ||
"slim/slim": "^3.12", | ||
"php-di/slim-bridge": "^2.0" | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": ">=5.0" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Wambo\\Demo\\": "src" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"Tests\\": "tests/" | ||
} | ||
}, | ||
"scripts": { | ||
"start": "php -S localhost:8080 -t public", | ||
"test": "phpunit", | ||
"lint": "vendor/bin/lint src/", | ||
"cs": "vendor/bin/phpcs --standard=PSR2 src/", | ||
"cbf": "vendor/bin/phpcbf --standard=PSR2 src/", | ||
"loc": "vendor/bin/phploc src/", | ||
"md": "vendor/bin/phpmd src/ text ruleset.xml", | ||
"cpd": "vendor/bin/phpcpd src/" | ||
}, | ||
"config": { | ||
"preferred-install": { | ||
"*": "dist" | ||
} | ||
}, | ||
"prefer-stable": true | ||
} |
Oops, something went wrong.