forked from notaryproject/notary
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (26 loc) · 726 Bytes
/
Dockerfile
File metadata and controls
33 lines (26 loc) · 726 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM golang:1.16.9
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}