The Wayback Machine - https://web.archive.org/web/20221223034625/https://github.com/go-gitea/gitea/pull/21753
Skip to content
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

Add .dockerignore #21753

Merged
merged 1 commit into from Nov 10, 2022
Merged

Add .dockerignore #21753

merged 1 commit into from Nov 10, 2022

Conversation

wolfogre
Copy link
Member

@wolfogre wolfogre commented Nov 10, 2022

There's a lot of work that has been done on .dockerignore:

And finally, it has been deleted by #2927.

I think we may have made this a little too complicated. Since we're compiling Gitea in docker, there's a simple rule to write .dockerignore: if we don't need the files in git commiting, we don't need them in docker building. So why not just copy .gitignore to .dockerignore?

Maybe creating a soft link is more elegant, but I think it may cause unnecessary trouble to the Windows users.

lunny
lunny approved these changes Nov 10, 2022
6543
6543 approved these changes Nov 10, 2022
@6543 6543 merged commit ce5aafb into go-gitea:main Nov 10, 2022
2 checks passed
zjjhot added a commit to zjjhot/gitea that referenced this pull request Nov 11, 2022
* giteaofficial/main:
  Revert unrelated changes for SMTP auth (go-gitea#21767)
  Init git module before database migration (go-gitea#21764)
  Extract updateSession function to reduce repetition (go-gitea#21735)
  Fix dashboard ignored system setting cache (go-gitea#21621)
  Add .dockerignore (go-gitea#21753)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

4 participants