feat: Docker containerization with multi-stage builds and security scanning#12
Open
devin-ai-integration[bot] wants to merge 2 commits intomasterfrom
Open
feat: Docker containerization with multi-stage builds and security scanning#12devin-ai-integration[bot] wants to merge 2 commits intomasterfrom
devin-ai-integration[bot] wants to merge 2 commits intomasterfrom
Conversation
- Add optimized Dockerfile with multi-stage build for React application - Configure nginx for serving static files with proper caching - Implement security scanning with Trivy via GitHub Actions - Add comprehensive Docker documentation in README-Docker.md - Update API configuration to use environment variables - Include security scan script and proper .dockerignore - Configure health checks and non-root user for security Co-Authored-By: Arthur Poon <arthur.poon@windsurf.com>
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
…y scan informational Co-Authored-By: Arthur Poon <arthur.poon@windsurf.com>
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.
feat: Docker containerization with multi-stage builds and security scanning
Summary
This PR implements comprehensive Docker containerization for the banking application with the following key components:
Key Changes:
Review & Testing Checklist for Human
docker-compose up -dand verify all 3 containers start successfully and the login page loads at http://localhost:3000docker-compose -f docker-compose.prod.yml up -dwith proper environment variables setRecommended Test Plan:
docker-compose up -din bank-server directorydocker-compose ps)./security-scan.shin both directoriesDiagram
%%{ init : { "theme" : "default" }}%% graph TB subgraph "Bank Server" dockerfile1["Dockerfile<br/>(bank-server)"]:::major-edit compose["docker-compose.yml"]:::major-edit composeprod["docker-compose.prod.yml"]:::major-edit initdb["init-db.sql"]:::major-edit end subgraph "Bank Client" dockerfile2["Dockerfile<br/>(bank-client)"]:::major-edit nginx["nginx.conf"]:::major-edit apiconfig["app/utils/api.js"]:::minor-edit end subgraph "Security & CI" security1[".github/workflows/<br/>security-scan.yml"]:::major-edit security2["security-scan.sh"]:::major-edit end subgraph "Documentation" readme["README-Docker.md"]:::major-edit end dockerfile1 --> compose dockerfile2 --> compose compose --> initdb nginx --> dockerfile2 apiconfig --> dockerfile2 subgraph Legend L1[Major Edit]:::major-edit L2[Minor Edit]:::minor-edit L3[Context/No Edit]:::context end classDef major-edit fill:#90EE90 classDef minor-edit fill:#87CEEB classDef context fill:#FFFFFFNotes
localhost:4000to useREACT_APP_API_URLenvironment variable for proper container networking/healthto/bankto match actual API routesSession Details: Requested by Arthur Poon (@akkp-windsurf)
Link to Devin run: https://app.devin.ai/sessions/e5c0e3b5804c496d9d03175180fb810b