mirror of
				https://gitea.com/Lydanne/buildx.git
				synced 2025-11-04 10:03:42 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			525 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			525 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
# syntax=docker/dockerfile:1.3
 | 
						|
 | 
						|
ARG GO_VERSION=1.17
 | 
						|
 | 
						|
FROM golang:${GO_VERSION}-alpine
 | 
						|
RUN apk add --no-cache gcc musl-dev yamllint
 | 
						|
RUN wget -O- -nv https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.36.0
 | 
						|
WORKDIR /go/src/github.com/docker/buildx
 | 
						|
RUN --mount=target=/go/src/github.com/docker/buildx --mount=target=/root/.cache,type=cache \
 | 
						|
  golangci-lint run
 | 
						|
RUN --mount=target=/go/src/github.com/docker/buildx --mount=target=/root/.cache,type=cache \
 | 
						|
  yamllint -c .yamllint.yml --strict .
 |