forked from siaorg/sia-gateway
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
65 lines (57 loc) · 2.01 KB
/
Dockerfile
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
FROM centos:latest
MAINTAINER Guohui Xie
# add third part
ADD ./third-libary/ /opt/
# add yum
RUN curl -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo \
&& rpm -ivh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm \
&& rpm -ivh /opt/tcl-8.5.13-8.el7.x86_64.rpm \
&& rpm -ivh /opt/tcl-devel-8.5.13-8.el7.x86_64.rpm \
&& yum clean all \
&& yum makecache \
&& yum install -y gcc \
gcc-c++ \
glibc* \
automake \
autoconf \
libtool \
make \
libxml2-devel \
pcre-devel \
openssl \
openssl-devel \
libicu-devel \
file libaio \
libaio-devel \
libXext \
libmcrypt \
libmcrypt-devel \
numactl \
unzip \
zip \
groupinstall \
chinese-support \
vixie-cron \
crontabs \
telnet-server \
telnet.* \
java-1.8.0-openjdk \
lsof \
sudo \
nginx
# language setting
RUN localedef -c -f UTF-8 -i zh_CN zh_CN.utf8
ENV LC_ALL "zh_CN.UTF-8"
# add admin server
ADD sia-gateway-admin-buildcomponent/target/gateway_admin_1.0.zip /app/jar/ROOT/
# add gateway-core cluster
ADD sia-gateway-buildcomponent/target/gateway_1.0.zip /app/jar/ROOT/
# add admin-display
ADD sia-gateway-admin-display/dist /app/jar/ROOT/dist/
RUN cd /app/jar/ROOT \
&& unzip gateway_1.0.zip \
&& unzip gateway_admin_1.0.zip \
&& rm -rf gateway_1.0.zip \
&& rm -rf gateway_admin_1.0.zip \
&& cp /opt/docker-start.sh /app/jar/ROOT \
&& chmod +x docker-start.sh \