|
| 1 | +FROM debian:9 |
| 2 | + |
| 3 | +RUN apt-get update |
| 4 | + |
| 5 | +# Needed for debian repositories added below. |
| 6 | +RUN apt-get install -y curl gnupg |
| 7 | + |
| 8 | +# Installs node. |
| 9 | +RUN curl -sSL https://deb.nodesource.com/setup_14.x | bash - && \ |
| 10 | + apt-get install -y nodejs |
| 11 | + |
| 12 | +# Installs yarn. |
| 13 | +RUN curl -sSL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \ |
| 14 | + echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \ |
| 15 | + apt-get update && apt-get install -y yarn |
| 16 | + |
| 17 | +# Installs VS Code build deps. |
| 18 | +RUN apt-get install -y build-essential \ |
| 19 | + libsecret-1-dev \ |
| 20 | + libx11-dev \ |
| 21 | + libxkbfile-dev |
| 22 | + |
| 23 | +# Installs envsubst. |
| 24 | +RUN apt-get install -y gettext-base |
| 25 | + |
| 26 | +# Misc build dependencies. |
| 27 | +RUN apt-get install -y git rsync |
| 28 | + |
| 29 | +# We need latest jq from debian buster for date support. |
| 30 | +RUN ARCH="$(dpkg --print-architecture)" && \ |
| 31 | + curl -sSOL http://http.us.debian.org/debian/pool/main/libo/libonig/libonig5_6.9.1-1_$ARCH.deb && \ |
| 32 | + dpkg -i libonig*.deb && \ |
| 33 | + curl -sSOL 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 -sSOL 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 |
| 37 | + |
| 38 | +# Installs shellcheck. |
| 39 | +# Unfortunately coredumps on debian:8 so disabled for now. |
| 40 | +#RUN curl -sSL 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* |
| 44 | + |
| 45 | +# Install Go dependencies |
| 46 | +RUN ARCH="$(dpkg --print-architecture)" && \ |
| 47 | + curl -sSL "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 |
| 49 | +ENV GO111MODULE=on |
| 50 | +RUN go get mvdan.cc/sh/v3/cmd/shfmt |
| 51 | +RUN go get github.com/goreleaser/nfpm/cmd/nfpm |
| 52 | + |
| 53 | +RUN curl -fsSL https://get.docker.com | sh |
0 commit comments