forked from ajeetraina/app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.lint
28 lines (22 loc) · 852 Bytes
/
Dockerfile.lint
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
ARG ALPINE_VERSION=3.7
ARG GO_VERSION=1.10.3
FROM golang:${GO_VERSION}-alpine${ALPINE_VERSION}
RUN apk add --no-cache \
curl \
git \
make \
coreutils
ENV GOMETALITER_VERSION=2.0.5
ENV NAKEDRECT_SHA=c0e305a4f690fed163d47628bcc06a6d5655bf92
WORKDIR /go/src/github.com/alecthomas/gometalinter
RUN curl -L https://github.com/alecthomas/gometalinter/archive/v${GOMETALITER_VERSION}.tar.gz | tar xz --strip-components=1 \
&& go build -v -o /usr/local/bin/gometalinter . \
&& gometalinter --install \
&& rm -rf /go/src/* /go/pkg/*
WORKDIR /go/src/github.com/alexkohler/nakedret
RUN git clone https://github.com/alexkohler/nakedret.git /go/src/github.com/alexkohler/nakedret \
&& go build -v -o /usr/local/bin/nakedret . \
&& rm -rf /go/src/* /go/pkg/*
WORKDIR /go/src/github.com/docker/app
ENV CGO_ENABLED=0
COPY . .