Skip to content

Commit

Permalink
🌅
Browse files Browse the repository at this point in the history
  • Loading branch information
René Penner committed Jun 16, 2019
1 parent 55be07b commit 75a178d
Show file tree
Hide file tree
Showing 10 changed files with 2,371 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/vendor
/.idea
19 changes: 19 additions & 0 deletions Dockerfile
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"]
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# PHP Standalone Slim4 App
39 changes: 39 additions & 0 deletions composer.json
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
}
Loading

0 comments on commit 75a178d

Please sign in to comment.