-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (27 loc) · 834 Bytes
/
Dockerfile
File metadata and controls
33 lines (27 loc) · 834 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.6.3
ENV GLIDE_VERSION=v0.11.1 GLIDE_HOME=/root GO15VENDOREXPERIMENT=1
RUN addgroup --gid 999 godev
RUN adduser --system \
--shell /bin/bash \
--disabled-password \
--gid 999 \
--uid 999 \
godev
RUN apt-get update && apt-get install -y \
jq \
man \
upx \
zip \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \
&& curl -sSL https://github.com/Masterminds/glide/releases/download/$GLIDE_VERSION/glide-$GLIDE_VERSION-linux-amd64.tar.gz \
| tar -vxz -C /usr/local/bin --strip=1 \
&& curl -L https://s3-us-west-2.amazonaws.com/get-deis/shellcheck-0.4.3-linux-amd64 -o /usr/local/bin/shellcheck \
&& chmod +x /usr/local/bin/shellcheck \
&& go get -u -v \
github.com/golang/lint/golint \
github.com/onsi/ginkgo/ginkgo \
github.com/mitchellh/gox
WORKDIR /go
COPY . /
USER godev