2020-06-03 15:41:13 +00:00
|
|
|
FROM centos:7
|
|
|
|
|
2020-06-03 19:18:27 +00:00
|
|
|
RUN ARCH="$(uname -m | sed 's/86_64/64/; s/aarch64/arm64/')" && \
|
|
|
|
curl -fsSL "https://nodejs.org/dist/v14.4.0/node-v14.4.0-linux-$ARCH.tar.xz" | tar -C /usr/local -xJ && \
|
|
|
|
mv /usr/local/node-v14.4.0-linux-$ARCH /usr/local/node-v14.4.0
|
|
|
|
ENV PATH=/usr/local/node-v14.4.0/bin:$PATH
|
|
|
|
RUN npm install -g yarn
|
2020-06-03 15:41:13 +00:00
|
|
|
|
|
|
|
RUN yum groupinstall -y 'Development Tools'
|
|
|
|
RUN yum install -y python2 libsecret-devel libX11-devel libxkbfile-devel
|
|
|
|
|
|
|
|
RUN npm config set python python2
|
|
|
|
|
|
|
|
RUN yum install -y epel-release && yum install -y jq
|
|
|
|
RUN yum install -y rsync
|
|
|
|
|
2020-06-03 17:48:17 +00:00
|
|
|
# Copied from ../debian8/Dockerfile
|
2020-06-03 15:41:13 +00:00
|
|
|
# Install Go dependencies
|
|
|
|
RUN ARCH="$(uname -m | sed 's/x86_64/amd64/; s/aarch64/arm64/')" && \
|
|
|
|
curl -fsSL "https://dl.google.com/go/go1.14.3.linux-$ARCH.tar.gz" | tar -C /usr/local -xz
|
|
|
|
ENV PATH=/usr/local/go/bin:/root/go/bin:$PATH
|
|
|
|
ENV GO111MODULE=on
|
|
|
|
RUN go get mvdan.cc/sh/v3/cmd/shfmt
|
|
|
|
RUN go get github.com/goreleaser/nfpm/cmd/nfpm
|