mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-03 08:02:36 +09:00 
			
		
		
		
	Compare commits
	
		
			1 Commits
		
	
	
		
			v1.16.3
			...
			v1.17.0-de
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					4563148a61 | 
@@ -1,7 +1,5 @@
 | 
				
			|||||||
 | 
					#Build stage
 | 
				
			||||||
###################################
 | 
					FROM golang:1.17-alpine3.15 AS build-env
 | 
				
			||||||
#Build stage - temporarily using techknowlogick image until we upgrade to latest official alpine/go image
 | 
					 | 
				
			||||||
FROM techknowlogick/go:1.17-alpine3.13 AS build-env
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
ARG GOPROXY
 | 
					ARG GOPROXY
 | 
				
			||||||
ENV GOPROXY ${GOPROXY:-direct}
 | 
					ENV GOPROXY ${GOPROXY:-direct}
 | 
				
			||||||
@@ -25,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.13
 | 
					FROM alpine:3.15
 | 
				
			||||||
LABEL maintainer="maintainers@gitea.io"
 | 
					LABEL maintainer="maintainers@gitea.io"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
EXPOSE 22 3000
 | 
					EXPOSE 22 3000
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,7 +1,5 @@
 | 
				
			|||||||
 | 
					#Build stage
 | 
				
			||||||
###################################
 | 
					FROM golang:1.17-alpine3.15 AS build-env
 | 
				
			||||||
#Build stage - temporarily using techknowlogick image until we upgrade to latest official alpine/go image
 | 
					 | 
				
			||||||
FROM techknowlogick/go:1.17-alpine3.13 AS build-env
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
ARG GOPROXY
 | 
					ARG GOPROXY
 | 
				
			||||||
ENV GOPROXY ${GOPROXY:-direct}
 | 
					ENV GOPROXY ${GOPROXY:-direct}
 | 
				
			||||||
@@ -25,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.13
 | 
					FROM alpine:3.15
 | 
				
			||||||
LABEL maintainer="maintainers@gitea.io"
 | 
					LABEL maintainer="maintainers@gitea.io"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
EXPOSE 2222 3000
 | 
					EXPOSE 2222 3000
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,5 +1,11 @@
 | 
				
			|||||||
#!/bin/sh
 | 
					#!/bin/sh
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Protect against buggy runc in docker <20.10.6 causing problems in with Alpine >= 3.14
 | 
				
			||||||
 | 
					if [ ! -x /bin/sh ]; then
 | 
				
			||||||
 | 
					  echo "Executable test for /bin/sh failed. Your Docker version is too old to run Alpine 3.14+ and Gitea. You must upgrade Docker.";
 | 
				
			||||||
 | 
					  exit 1;
 | 
				
			||||||
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if [ "${USER}" != "git" ]; then
 | 
					if [ "${USER}" != "git" ]; then
 | 
				
			||||||
    # rename user
 | 
					    # rename user
 | 
				
			||||||
    sed -i -e "s/^git\:/${USER}\:/g" /etc/passwd
 | 
					    sed -i -e "s/^git\:/${USER}\:/g" /etc/passwd
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,5 +1,11 @@
 | 
				
			|||||||
#!/bin/sh
 | 
					#!/bin/sh
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Protect against buggy runc in docker <20.10.6 causing problems in with Alpine >= 3.14
 | 
				
			||||||
 | 
					if [ ! -x /bin/sh ]; then
 | 
				
			||||||
 | 
					  echo "Executable test for /bin/sh failed. Your Docker version is too old to run Alpine 3.14+ and Gitea. You must upgrade Docker.";
 | 
				
			||||||
 | 
					  exit 1;
 | 
				
			||||||
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if [ -x /usr/local/bin/docker-setup.sh ]; then
 | 
					if [ -x /usr/local/bin/docker-setup.sh ]; then
 | 
				
			||||||
    /usr/local/bin/docker-setup.sh || { echo 'docker setup failed' ; exit 1; }
 | 
					    /usr/local/bin/docker-setup.sh || { echo 'docker setup failed' ; exit 1; }
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user