Skip to content

Conversation

wolfogre
Copy link
Member

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.

@wolfogre wolfogre added the topic/build PR changes how Gitea is built, i.e. regarding Docker or the Makefile label Nov 10, 2022
@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Nov 10, 2022
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Nov 10, 2022
@6543 6543 merged commit ce5aafb into go-gitea:main Nov 10, 2022
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)
@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. topic/build PR changes how Gitea is built, i.e. regarding Docker or the Makefile
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants