From a60a1c24003ef4ad971ef5bdaef140d28d24a7df Mon Sep 17 00:00:00 2001 From: Alex Renoki Date: Fri, 20 Aug 2021 23:30:27 +0300 Subject: [PATCH] wip building --- .gitignore | 1 + Dockerfile | 15 +++------------ README.md | 2 +- application => artisan | 0 composer.json | 2 +- config/app.php | 2 +- 6 files changed, 7 insertions(+), 15 deletions(-) rename application => artisan (100%) diff --git a/.gitignore b/.gitignore index 353fb79..841f965 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +/builds /vendor /.idea /.vscode diff --git a/Dockerfile b/Dockerfile index 3312302..fdcec13 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,16 +1,7 @@ FROM php:8-cli-alpine -COPY . /app - -RUN docker-php-ext-configure bcmath --enable-bcmath && \ - docker-php-ext-configure pcntl --enable-pcntl && \ - docker-php-ext-install \ - bcmath \ - pcntl - -RUN rm -rf tests/ .git/ .github/ *.md && \ - rm -rf vendor/*/test/ vendor/*/tests/* - WORKDIR /app -CMD ["php", "application", "network:watch"] +COPY builds/network-watcher /app/network-watcher + +CMD ["/app/network-watcher", "network:watch"] diff --git a/README.md b/README.md index a848660..9e1ba1e 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ $ composer install --ignore-platform-reqs && cp .env.example .env ## Running the Network Watcher ```bash -$ php application network:watch +$ php artisan network:watch ``` ## 🐛 Testing diff --git a/application b/artisan similarity index 100% rename from application rename to artisan diff --git a/composer.json b/composer.json index 7c4f95d..94bdc06 100644 --- a/composer.json +++ b/composer.json @@ -46,5 +46,5 @@ }, "minimum-stability": "dev", "prefer-stable": true, - "bin": ["application"] + "bin": ["artisan"] } diff --git a/config/app.php b/config/app.php index 4db07d0..f3bfd09 100644 --- a/config/app.php +++ b/config/app.php @@ -13,7 +13,7 @@ | */ - 'name' => 'Application', + 'name' => 'Network Watcher', /* |--------------------------------------------------------------------------