File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ * .log
2+ .DS_Store
3+ .env
4+ .env.backup
5+ .env.production
6+ .phpactor.json
7+ .phpunit.result.cache
8+ /.fleet
9+ /.idea
10+ /.nova
11+ /.phpunit.cache
12+ /.vscode
13+ /.zed
14+ /auth.json
15+ /node_modules
16+ /public /hot
17+ /public /storage
18+ /storage /* .key
19+ /storage /pail
20+ /vendor
21+ Homestead.json
22+ Homestead.yaml
23+ Thumbs.db
Original file line number Diff line number Diff line change 1+ name : Push to Docker Registry
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ jobs :
9+ build :
10+ runs-on : ubuntu-latest
11+ environment : DOCKER
12+ steps :
13+ - name : Checkout repository
14+ uses : actions/checkout@v3
15+
16+ - name : Log in to Docker Hub
17+ uses : docker/login-action@v2
18+ with :
19+ username : ${{ secrets.DOCKER_USERNAME }}
20+ password : ${{ secrets.DOCKER_PASSWORD }}
21+
22+ - name : Build and push Docker image
23+ uses : docker/build-push-action@v4
24+ with :
25+ context : .
26+ push : true
27+ tags : disyfa/laravel-rest-api-boilerplate:latest
Original file line number Diff line number Diff line change 1+ FROM dunglas/frankenphp:php8.3
2+
3+ ENV SERVER_NAME=":80"
4+
5+ WORKDIR /app
6+
7+ COPY . /app
8+
9+ RUN install-php-extensions \
10+ pdo_mysql \
11+ mbstring \
12+ tokenizer \
13+ intl \
14+ pcntl \
15+ bcmath \
16+ exif \
17+ gd \
18+ zip
19+
20+ RUN echo "upload_max_filesize = 20M" >> /usr/local/etc/php/conf.d/uploads.ini \
21+ && echo "post_max_size = 20M" >> /usr/local/etc/php/conf.d/uploads.ini \
22+ && echo "memory_limit = 128M" >> /usr/local/etc/php/conf.d/uploads.ini
23+
24+ COPY --from=composer:2.2 /usr/bin/composer /usr/bin/composer
25+
26+ RUN composer install
27+ RUN php artisan storage:link || true
You can’t perform that action at this time.
0 commit comments