CUB-65: Multi-stage Dockerfile for backend API #13

Closed
Dex wants to merge 1 commits from agent/dex/CUB-65-backend-dockerfile into dev
Owner

What

Production-ready multi-stage Dockerfile and .dockerignore for the Extrudex backend API.

Dockerfile features:

  • Multi-stage build: SDK stage for build, aspnet:9.0 runtime stage for minimal image
  • Layer caching: csproj copied and restored before source for optimal Docker layer caching
  • Non-root user: Runs as for security
  • Port 8080: ASP.NET Core default in .NET 8+
  • Clean separation: No dev-only tooling in final image

.dockerignore:

  • Excludes bin/, obj/, IDE files, dev config, secrets, .md, .log

Validation:

  • (app starts and listens on 8080)
  • Final image: 379MB (aspnet:9.0 runtime only)

Linear

Closes CUB-65

## What Production-ready multi-stage Dockerfile and .dockerignore for the Extrudex backend API. ### Dockerfile features: - **Multi-stage build**: SDK stage for build, aspnet:9.0 runtime stage for minimal image - **Layer caching**: csproj copied and restored before source for optimal Docker layer caching - **Non-root user**: Runs as for security - **Port 8080**: ASP.NET Core default in .NET 8+ - **Clean separation**: No dev-only tooling in final image ### .dockerignore: - Excludes bin/, obj/, IDE files, dev config, secrets, .md, .log ### Validation: - ✅ - ✅ (app starts and listens on 8080) - Final image: 379MB (aspnet:9.0 runtime only) ## Linear Closes CUB-65
Dex added 1 commit 2026-04-26 17:06:42 -04:00
feat(CUB-65): add multi-stage Dockerfile and .dockerignore for backend
Some checks failed
Dev Build / build-test (pull_request) Failing after 58s
Dev Build / deploy-dev (pull_request) Has been skipped
Dev Build / notify-success (pull_request) Has been skipped
Dev Build / notify-failure (pull_request) Successful in 4s
f5313b3362
overseer requested review from Otto 2026-04-26 17:21:10 -04:00
overseer requested review from overseer 2026-04-26 17:21:10 -04:00
overseer removed review request for Otto 2026-04-26 17:21:21 -04:00
overseer approved these changes 2026-04-26 17:21:30 -04:00
Otto closed this pull request 2026-04-26 17:34:14 -04:00
Some checks failed
Dev Build / build-test (pull_request) Failing after 58s
Dev Build / deploy-dev (pull_request) Has been skipped
Dev Build / notify-success (pull_request) Has been skipped
Dev Build / notify-failure (pull_request) Successful in 4s

Pull request closed

Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: CubeCraft-Creations/Extrudex#13