2020-06-03 22:41:13 +07:00
|
|
|
FROM centos:7
|
|
|
|
|
2020-10-09 04:15:05 +07:00
|
|
|
ARG NODE_VERSION=v12.18.4
|
2020-06-04 02:18:27 +07:00
|
|
|
RUN ARCH="$(uname -m | sed 's/86_64/64/; s/aarch64/arm64/')" && \
|
2020-08-26 22:54:50 +07:00
|
|
|
curl -fsSL "https://nodejs.org/dist/$NODE_VERSION/node-$NODE_VERSION-linux-$ARCH.tar.xz" | tar -C /usr/local -xJ && \
|
|
|
|
mv "/usr/local/node-$NODE_VERSION-linux-$ARCH" "/usr/local/node-$NODE_VERSION"
|
|
|
|
ENV PATH=/usr/local/node-$NODE_VERSION/bin:$PATH
|
2020-06-04 02:18:27 +07:00
|
|
|
RUN npm install -g yarn
|
2020-06-03 22:41:13 +07:00
|
|
|
|
|
|
|
RUN yum groupinstall -y 'Development Tools'
|
2021-03-25 23:50:58 +07:00
|
|
|
RUN yum install -y python2
|
2020-06-03 22:41:13 +07:00
|
|
|
|
|
|
|
RUN npm config set python python2
|
|
|
|
|
|
|
|
RUN yum install -y epel-release && yum install -y jq
|
|
|
|
RUN yum install -y rsync
|
|
|
|
|
2020-09-15 21:41:47 +07:00
|
|
|
# Copied from ../debian10/Dockerfile
|
2020-10-07 01:36:55 +07:00
|
|
|
# Install Go.
|
2020-06-03 22:41:13 +07:00
|
|
|
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
|
2020-10-07 01:36:55 +07:00
|
|
|
ENV GOPATH=/gopath
|
|
|
|
# Ensures running this image as another user works.
|
|
|
|
RUN mkdir -p $GOPATH && chmod -R 777 $GOPATH
|
|
|
|
ENV PATH=/usr/local/go/bin:$GOPATH/bin:$PATH
|
|
|
|
|
|
|
|
# Install Go dependencies
|
2020-06-03 22:41:13 +07:00
|
|
|
ENV GO111MODULE=on
|
2021-04-09 01:12:01 +07:00
|
|
|
RUN go get github.com/goreleaser/nfpm/cmd/nfpm@v2.3.1
|
2020-06-04 03:22:59 +07:00
|
|
|
|
|
|
|
RUN curl -fsSL https://get.docker.com | sh
|