forked from aliyun-node/alinode-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfileAliyunnode
More file actions
27 lines (21 loc) · 901 Bytes
/
DockerfileAliyunnode
File metadata and controls
27 lines (21 loc) · 901 Bytes
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
FROM centos:7
USER root
# Change mirrors
RUN yum install wget -y
# RUN mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
# RUN wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
# Install required software
RUN yum install curl git python tree gcc gcc-c++ make openssl-devel -y
ENV HOME /root
ENV ALINODE_VERSION 1.2.2
ENV TNVM_DIR /root/.tnvm
RUN mkdir /tmp/node_log
# Install alinode v1.1.0 (node 4.2.2)
RUN wget -qO- https://raw.githubusercontent.com/aliyun-node/tnvm/master/install.sh | bash
RUN source $HOME/.bashrc && \
tnvm install "alinode-v$ALINODE_VERSION" && \
tnvm use "alinode-v$ALINODE_VERSION"
RUN source $HOME/.bashrc && npm install -g agentx
RUN git clone https://github.com/aliyun-node/commands.git /usr/local/src/alinode_commands
COPY docker-entrypoint.sh /
ENTRYPOINT ["/docker-entrypoint.sh"]