Skip to content

Add whitelist docker ignore for sample image - #27

Merged
maansaake merged 1 commit into
mainfrom
dockerignore-whitelist-20260523-github-actions-help
May 23, 2026
Merged

Add whitelist docker ignore for sample image#27
maansaake merged 1 commit into
mainfrom
dockerignore-whitelist-20260523-github-actions-help

Conversation

@maansaake

Copy link
Copy Markdown
Owner

Summary

  • add a whitelist .dockerignore for sample-go-app
  • limit the image build context to the files the sample Dockerfile actually copies

Validation

  • docker buildx build --load --build-arg VERSION=test -t copilot-sample-go-app-buildx:test -f sample-go-app/Dockerfile sample-go-app
  • docker build --build-arg VERSION=test -t copilot-sample-go-app-docker:test -f sample-go-app/Dockerfile sample-go-app

## Summary
- add a whitelist .dockerignore for sample-go-app
- limit the image build context to the files the sample Dockerfile actually copies

## Validation
- docker buildx build --load --build-arg VERSION=test -t copilot-sample-go-app-buildx:test -f sample-go-app/Dockerfile sample-go-app
- docker build --build-arg VERSION=test -t copilot-sample-go-app-docker:test -f sample-go-app/Dockerfile sample-go-app

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@maansaake
maansaake merged commit f16f702 into main May 23, 2026
13 checks passed
@maansaake
maansaake deleted the dockerignore-whitelist-20260523-github-actions-help branch May 23, 2026 22:15
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.

1 participant