mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Hardcode path to docker images (#23955)
Fix #23954 This allows for building on platforms that don't have docker hub as the default container registry.
This commit is contained in:
		@@ -1,5 +1,5 @@
 | 
				
			|||||||
#Build stage
 | 
					#Build stage
 | 
				
			||||||
FROM golang:1.20-alpine3.17 AS build-env
 | 
					FROM docker.io/library/golang:1.20-alpine3.17 AS build-env
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ARG GOPROXY
 | 
					ARG GOPROXY
 | 
				
			||||||
ENV GOPROXY ${GOPROXY:-direct}
 | 
					ENV GOPROXY ${GOPROXY:-direct}
 | 
				
			||||||
@@ -23,7 +23,7 @@ RUN if [ -n "${GITEA_VERSION}" ]; then git checkout "${GITEA_VERSION}"; fi \
 | 
				
			|||||||
# Begin env-to-ini build
 | 
					# Begin env-to-ini build
 | 
				
			||||||
RUN go build contrib/environment-to-ini/environment-to-ini.go
 | 
					RUN go build contrib/environment-to-ini/environment-to-ini.go
 | 
				
			||||||
 | 
					
 | 
				
			||||||
FROM alpine:3.17
 | 
					FROM docker.io/library/alpine:3.17
 | 
				
			||||||
LABEL maintainer="maintainers@gitea.io"
 | 
					LABEL maintainer="maintainers@gitea.io"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
EXPOSE 22 3000
 | 
					EXPOSE 22 3000
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,5 +1,5 @@
 | 
				
			|||||||
#Build stage
 | 
					#Build stage
 | 
				
			||||||
FROM golang:1.20-alpine3.17 AS build-env
 | 
					FROM docker.io/library/golang:1.20-alpine3.17 AS build-env
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ARG GOPROXY
 | 
					ARG GOPROXY
 | 
				
			||||||
ENV GOPROXY ${GOPROXY:-direct}
 | 
					ENV GOPROXY ${GOPROXY:-direct}
 | 
				
			||||||
@@ -23,7 +23,7 @@ RUN if [ -n "${GITEA_VERSION}" ]; then git checkout "${GITEA_VERSION}"; fi \
 | 
				
			|||||||
# Begin env-to-ini build
 | 
					# Begin env-to-ini build
 | 
				
			||||||
RUN go build contrib/environment-to-ini/environment-to-ini.go
 | 
					RUN go build contrib/environment-to-ini/environment-to-ini.go
 | 
				
			||||||
 | 
					
 | 
				
			||||||
FROM alpine:3.17
 | 
					FROM docker.io/library/alpine:3.17
 | 
				
			||||||
LABEL maintainer="maintainers@gitea.io"
 | 
					LABEL maintainer="maintainers@gitea.io"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
EXPOSE 2222 3000
 | 
					EXPOSE 2222 3000
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user