You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
727 B
Docker
34 lines
727 B
Docker
FROM golang:1.17.13
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
curl \
|
|
clang \
|
|
libsqlite3-dev \
|
|
patch \
|
|
tar \
|
|
xz-utils \
|
|
python \
|
|
python3-pip \
|
|
python-setuptools \
|
|
--no-install-recommends \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN useradd -ms /bin/bash notary \
|
|
&& pip install codecov
|
|
|
|
ENV GO111MODULE=on
|
|
|
|
RUN go get golang.org/x/lint/golint \
|
|
github.com/client9/misspell/cmd/misspell \
|
|
github.com/gordonklaus/ineffassign \
|
|
github.com/securego/gosec/cmd/gosec/... \
|
|
github.com/fzipp/gocyclo/cmd/gocyclo
|
|
|
|
ENV GOFLAGS=-mod=vendor \
|
|
NOTARYDIR=/go/src/github.com/theupdateframework/notary
|
|
|
|
COPY . ${NOTARYDIR}
|
|
RUN chmod -R a+rw /go && chmod 0600 ${NOTARYDIR}/fixtures/database/*
|
|
|
|
WORKDIR ${NOTARYDIR}
|