Docker: production RoadRunner image for GHCR, linux/amd64 only#9
Merged
karabayyazilim merged 9 commits intomasterfrom Feb 20, 2026
Merged
Conversation
…eact Co-authored-by: karabayyazilim <45515180+karabayyazilim@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Create production-ready Docker setup with RoadRunner for Laravel app
Add production Docker setup with RoadRunner for Laravel + Inertia + React
Feb 20, 2026
Co-authored-by: karabayyazilim <45515180+karabayyazilim@users.noreply.github.com>
Copilot
AI
changed the title
Add production Docker setup with RoadRunner for Laravel + Inertia + React
Fix Docker build: add laravel/octane to composer.lock
Feb 20, 2026
…ma platform requirement Co-authored-by: karabayyazilim <45515180+karabayyazilim@users.noreply.github.com>
Copilot
AI
changed the title
Fix Docker build: add laravel/octane to composer.lock
Fix Docker build: pin composer stage to PHP 8.4
Feb 20, 2026
…ad of nonexistent composer:2-php8.4 Co-authored-by: karabayyazilim <45515180+karabayyazilim@users.noreply.github.com>
Copilot
AI
changed the title
Fix Docker build: pin composer stage to PHP 8.4
Fix Docker build: composer:2 + --ignore-platform-req=php
Feb 20, 2026
…cks in composer stage Co-authored-by: karabayyazilim <45515180+karabayyazilim@users.noreply.github.com>
Copilot
AI
changed the title
Fix Docker build: composer:2 + --ignore-platform-req=php
Fix Docker build: ignore all composer platform requirements in build stage
Feb 20, 2026
…ion on Alpine Co-authored-by: karabayyazilim <45515180+karabayyazilim@users.noreply.github.com>
Copilot
AI
changed the title
Fix Docker build: ignore all composer platform requirements in build stage
Fix production Docker build: linux-headers + composer platform reqs + composer.lock sync
Feb 20, 2026
…lel arm64/amd64 builds Co-authored-by: karabayyazilim <45515180+karabayyazilim@users.noreply.github.com>
Copilot
AI
changed the title
Fix production Docker build: linux-headers + composer platform reqs + composer.lock sync
Production Docker setup with RoadRunner: build fixes + performance optimizations
Feb 20, 2026
Co-authored-by: karabayyazilim <45515180+karabayyazilim@users.noreply.github.com>
Copilot
AI
changed the title
Production Docker setup with RoadRunner: build fixes + performance optimizations
Docker: production RoadRunner image for GHCR, linux/amd64 only
Feb 20, 2026
Copilot stopped work on behalf of
karabayyazilim due to an error
February 20, 2026 20:14
Copilot AI
added a commit
that referenced
this pull request
Feb 20, 2026
…dency Co-authored-by: karabayyazilim <45515180+karabayyazilim@users.noreply.github.com>
karabayyazilim
added a commit
that referenced
this pull request
Feb 20, 2026
Revert PR #9: Remove production RoadRunner Docker setup and laravel/octane
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a production Docker setup using RoadRunner as the app server, published to GHCR via GitHub Actions on push to
masterorv*.*.*tags.New files
Dockerfile— 4-stage build:node:20-alpine(Vite/React) →composer:2(vendor) →roadrunner:2024(rr binary) →php:8.3-cli-alpine(production). Usesmlocati/php-extension-installerfor pre-compiled extension binaries instead of compiling from source..rr.yaml— RoadRunner config: HTTP on0.0.0.0:8080, gzip + static middleware, JSON production logs to stderr..dockerignore— excludes.git,.env*,node_modules,vendor, runtime caches,tests/..github/workflows/docker-publish.yml— singleubuntu-latestjob,linux/amd64only, GHA layer cache, pushes toghcr.io/codenteq/eventeq.composer.json
Added
laravel/octane: ^2.0(required byoctane:start --server=roadrunner) and regeneratedcomposer.lockviacomposer require.Build issues resolved
laravel/octanenot in lock filecomposer require laravel/octane:^2.0to synccomposer.lockcomposer:2ships PHP 8.5, breaksnette/schema(caps at 8.4)--ignore-platform-reqsto composer commandslinux/sock_diag.h: No such file or directorybuildingsocketson Alpineinstall-php-extensionshandles kernel headers automaticallyOriginal prompt
Objective
Create a production-ready Docker setup using RoadRunner as the application server for the Laravel + Inertia.js + React.js eventeq project. The Docker image should be published to GitHub Container Registry (GHCR) automatically via GitHub Actions, and be deployable on Dokploy.
Required Files
1.
Dockerfile(root of the repo — replace/override the existing Sail-based Dockerfiles)A multi-stage production Dockerfile with 4 stages:
Stage 1 — Frontend Build (
node:20-alpine):package.json,package-lock.json*,yarn.lock*yarn install --frozen-lockfileif yarn.lock exists, elsenpm ciif package-lock.json exists, elsenpm install)resources/,vite.config.js,postcss.config.js*,tailwind.config.js*npm run buildto compile React/CSS assets via ViteStage 2 — Composer Dependencies (
composer:2):composer.jsonandcomposer.lockcomposer install --no-dev --no-interaction --no-scripts --no-autoloader --prefer-distcomposer dump-autoload --optimize --no-devStage 3 — RoadRunner Binary:
ghcr.io/roadrunner-server/roadrunner:2024to get therrbinaryStage 4 — Production Image (
php:8.3-cli-alpine):php.ini-production/var/www/html/usr/local/bin/rr.rr.yamlconfighttp://localhost:8080/uprr serve -c /var/www/html/.rr.yaml2.
.rr.yaml(root of the repo)RoadRunner configuration:
3.
.dockerignore(root of the repo)4.
.github/workflows/docker-publish.ymlGitHub Actions workflow:
masterbranch, tags matchingv*.*.*, and pull requests tomasterghcr.io${{ github.repository }}(i.e.,codenteq/eventeq)5. Add
laravel/octanedependencyAdd
"laravel/octane": "^2.0"to therequiresection ofcomposer.jsonsince RoadRunner requires Laravel Octane.Important Notes
docker/8.x/are Laravel Sail development Dockerfiles — they should NOT be modified. The new productionDockerfilegoes in the project root.resources/css/app.cssandresources/js/app.jsx.This pull request was created from Copilot chat.
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.