-
Notifications
You must be signed in to change notification settings - Fork 3
Setup .devcontainer configuration to enable run the project on github codespaces #75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds a development container configuration to enable running the Flutter project in GitHub Codespaces.
- Introduces
.devcontainer/devcontainer.jsonwith Dockerfile reference, VS Code extensions, and port forwarding. - Defines a Dockerfile that installs Dart, pins Flutter SDK to v3.32.5, and runs
flutter doctor.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| .devcontainer/devcontainer.json | Adds Codespaces config: container name, extensions, and port |
| .devcontainer/Dockerfile | Builds a Dart-based image, installs dependencies, and sets up Flutter |
| @@ -0,0 +1,12 @@ | |||
| FROM dart | |||
Copilot
AI
Jun 28, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pin the Dart base image to a specific version (e.g., dart:3.1) to ensure build reproducibility and prevent unexpected changes when the latest tag updates.
| FROM dart | |
| FROM dart:3.1 |
| ] | ||
| } | ||
| }, | ||
| "forwardPorts": [3000] |
Copilot
AI
Jun 28, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] Consider adding a postCreateCommand such as "flutter pub get" to automatically install dependencies after the container is created, improving the onboarding experience.
| "forwardPorts": [3000] | |
| "forwardPorts": [3000], | |
| "postCreateCommand": "flutter pub get" |
Co-authored-by: Copilot <[email protected]>
No description provided.