mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-26 12:27:06 +00:00 
			
		
		
		
	Set user.name & user.email in Dockerfile
The previous setting would cause all repo creations to fail, as described in issue #328. The previous commit also resolves this issue, but it seems saner to create the user in the Dockerfile than at runtime.
This commit is contained in:
		| @@ -46,7 +46,7 @@ ENV HOME /home/git | |||||||
| ENV USER git | ENV USER git | ||||||
| ENV PATH $GOGS_PATH:$PATH | ENV PATH $GOGS_PATH:$PATH | ||||||
|  |  | ||||||
| RUN git config --global user.name "GoGS" | RUN git config --global user.name "GoGS" && git config --global user.email "gogitservice@gmail.com" | ||||||
|  |  | ||||||
| ENTRYPOINT ["/tmp/init_gogs.sh"] | ENTRYPOINT ["/tmp/init_gogs.sh"] | ||||||
| CMD ["gogs", "web"] | CMD ["gogs", "web"] | ||||||
|   | |||||||
| @@ -47,7 +47,7 @@ ENV HOME /home/git | |||||||
| ENV USER git | ENV USER git | ||||||
| ENV PATH $GOGS_PATH:$PATH | ENV PATH $GOGS_PATH:$PATH | ||||||
|  |  | ||||||
| RUN git config --global user.name "GoGS" | RUN git config --global user.name "GoGS" && git config --global user.email "gogitservice@gmail.com" | ||||||
|  |  | ||||||
| ENTRYPOINT ["/tmp/init_gogs.sh"] | ENTRYPOINT ["/tmp/init_gogs.sh"] | ||||||
| CMD ["gogs", "web"] | CMD ["gogs", "web"] | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 euank
					euank