Skip to content

Conversation

@Prasanjeet-Microsoft
Copy link
Contributor

Purpose

  • This PR introduces a .dockerignore file within the src directory, which serves as the Docker build context. It ensures that unnecessary files and directories—such as virtual environments, build artifacts, logs, node_modules, and IDE configurations—are excluded from being sent to the Docker daemon during the image build process.

  • Optimizing the build context improves performance and reduces image size and build time.

Does this introduce a breaking change?

  • Yes
  • No

Deployment Validation

  • I have validated the deployment process successfully and all services are running as expected with this change.

What to Check

Verify that the following are valid:

  • Confirm .dockerignore is present inside src/ directory.
  • Ensure expected files (e.g. .git, node_modules, .env, .vscode, etc.) are excluded from build context.
  • Run a Docker build and verify only necessary files are included.
  • Confirm no unintended exclusions (like source code or Dockerfile used for build)

@Roopan-Microsoft Roopan-Microsoft merged commit 6d9f894 into dev May 7, 2025
5 checks passed
@Roopan-Microsoft Roopan-Microsoft deleted the PSL-US-17425 branch May 7, 2025 08:28
Roopan-Microsoft added a commit that referenced this pull request May 21, 2025
* Added .dockerignore file to exclude unnecessary files from Docker build context (#537)

* fixed date time response issue (#542)

* Update main.bicepparam

* Update src/App/backend/chat_logic_handler.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/.dockerignore

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Prasanjeet-Microsoft <v-singhprasa@microsoft.com>
Co-authored-by: AjitPadhi-Microsoft <v-padhiajit@microsoft.com>
Co-authored-by: Abdul-Microsoft <v-amujeebta@microsoft.com>
Co-authored-by: Harmanpreet Kaur <v-harmanpkau@microsoft.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@github-actions
Copy link

github-actions bot commented Jun 6, 2025

🎉 This PR is included in version 1.2.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants