mirror of
				https://gitea.com/Lydanne/buildx.git
				synced 2025-11-04 18:13:42 +08:00 
			
		
		
		
	update the dependency to v0.7.0 to be closer to what docker/cli uses; https://github.com/theupdateframework/notary/compare/v0.6.1...v0.7.0 Note that docker/cli is slightly ahead of v0.7.0, and uses bf96a202a09a; https://github.com/theupdateframework/notary/compare/v0.7.0...bf96a202a09a Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
		
			
				
	
	
		
			28 lines
		
	
	
		
			661 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			661 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
FROM golang:1.14.1
 | 
						|
 | 
						|
RUN apt-get update && apt-get install -y \
 | 
						|
	curl \
 | 
						|
	clang \
 | 
						|
	libsqlite3-dev \
 | 
						|
	patch \
 | 
						|
	tar \
 | 
						|
	xz-utils \
 | 
						|
	python \
 | 
						|
	python-pip \
 | 
						|
	python-setuptools \
 | 
						|
	--no-install-recommends \
 | 
						|
	&& rm -rf /var/lib/apt/lists/*
 | 
						|
 | 
						|
RUN useradd -ms /bin/bash notary \
 | 
						|
	&& pip install codecov \
 | 
						|
	&& go get golang.org/x/lint/golint github.com/fzipp/gocyclo github.com/client9/misspell/cmd/misspell github.com/gordonklaus/ineffassign github.com/securego/gosec/cmd/gosec/...
 | 
						|
 | 
						|
ENV NOTARYDIR /go/src/github.com/theupdateframework/notary
 | 
						|
 | 
						|
COPY . ${NOTARYDIR}
 | 
						|
RUN chmod -R a+rw /go && chmod 0600 ${NOTARYDIR}/fixtures/database/*
 | 
						|
 | 
						|
ENV GO111MODULE=on
 | 
						|
 | 
						|
WORKDIR ${NOTARYDIR}
 |