-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (27 loc) · 908 Bytes
/
Dockerfile
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
FROM golang:1.13.5-alpine3.11
RUN apk update && apk add openssl git
# glide
RUN VERSION=0.13.3 && \
FILE=glide-v$VERSION-linux-amd64.tar.gz && \
URL=https://github.com/Masterminds/glide/releases/download/v$VERSION/$FILE && \
echo ========== && \
echo FILE=$FILE && \
echo ========== && \
mkdir -p /opt/glide && \
cd /opt/glide && \
wget $URL && \
tar xvfpz $FILE && \
rm $FILE && \
ln -s /opt/glide/linux-amd64/glide /usr/local/bin/glide
# go dep / https://github.com/golang/dep/releases/download/v0.5.4/dep-linux-amd64
RUN VERSION=0.5.4 && \
FILE=dep-linux-amd64 && \
URL=https://github.com/golang/dep/releases/download/v$VERSION/$FILE && \
echo ========== && \
echo FILE=$FILE && \
echo ========== && \
mkdir -p /opt/dep && \
cd /opt/dep && \
wget $URL && \
chmod 755 $FILE && \
ln -s /opt/dep/$FILE /usr/local/bin/dep