1
- FROM debian:8
1
+ FROM debian:10
2
2
3
3
RUN apt-get update
4
4
@@ -24,28 +24,23 @@ RUN apt-get install -y build-essential \
24
24
RUN apt-get install -y gettext-base
25
25
26
26
# Misc build dependencies.
27
- RUN apt-get install -y git rsync unzip
28
-
29
- # We need latest jq from debian buster for date support.
30
- RUN ARCH="$(dpkg --print-architecture)" && \
31
- curl -fsSOL http://http.us.debian.org/debian/pool/main/libo/libonig/libonig5_6.9.1-1_$ARCH.deb && \
32
- dpkg -i libonig*.deb && \
33
- curl -fsSOL http://http.us.debian.org/debian/pool/main/j/jq/libjq1_1.5+dfsg-2+b1_$ARCH.deb && \
34
- dpkg -i libjq*.deb && \
35
- curl -fsSOL http://http.us.debian.org/debian/pool/main/j/jq/jq_1.5+dfsg-2+b1_$ARCH.deb && \
36
- dpkg -i jq*.deb && rm *.deb
27
+ RUN apt-get install -y git rsync unzip jq
37
28
38
29
# Installs shellcheck.
39
- # Unfortunately coredumps on debian:8 so disabled for now.
40
- # RUN curl -fsSL https://github.com/koalaman/shellcheck/releases/download/v0.7.1/shellcheck-v0.7.1.linux.$(uname -m).tar.xz | \
41
- # tar -xJ && \
42
- # mv shellcheck*/shellcheck /usr/local/bin && \
43
- # rm -R shellcheck*
30
+ RUN curl -fsSL https://github.com/koalaman/shellcheck/releases/download/v0.7.1/shellcheck-v0.7.1.linux.$(uname -m).tar.xz | \
31
+ tar -xJ && \
32
+ mv shellcheck*/shellcheck /usr/local/bin && \
33
+ rm -R shellcheck*
44
34
45
- # Install Go dependencies
35
+ # Install Go.
46
36
RUN ARCH="$(uname -m | sed 's/x86_64/amd64/; s/aarch64/arm64/')" && \
47
37
curl -fsSL "https://dl.google.com/go/go1.14.3.linux-$ARCH.tar.gz" | tar -C /usr/local -xz
48
- ENV PATH=/usr/local/go/bin:/root/go/bin:$PATH
38
+ ENV GOPATH=/gopath
39
+ # Ensures running this image as another user works.
40
+ RUN mkdir -p $GOPATH && chmod -R 777 $GOPATH
41
+ ENV PATH=/usr/local/go/bin:$GOPATH/bin:$PATH
42
+
43
+ # Install Go dependencies
49
44
ENV GO111MODULE=on
50
45
RUN go get mvdan.cc/sh/v3/cmd/shfmt
51
46
RUN go get github.com/goreleaser/nfpm/cmd/nfpm
0 commit comments