forked from cfadmin-cn/cfadmin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (18 loc) · 938 Bytes
/
Dockerfile
File metadata and controls
24 lines (18 loc) · 938 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
FROM centos:7
MAINTAINER CandyMi "869646063@qq.com"
# 加入include与lib搜索路径
ENV LD_LIBRARY_PATH /usr/local/lib:$LD_LIBRARY_PATH
ENV C_INCLUDE_PATH /usr/local/include:$C_INCLUDE_PATH
WORKDIR /root/download
COPY ./lua-5.3.5.tar.gz /root/download/lua.tar.gz
COPY ./libev-4.25.tar.gz /root/download/libev.tar.gz
RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 \
&& yum install nc gcc vim autoconf make git readline-devel openssl-devel -y \
&& tar zxvf lua.tar.gz && cd lua* && make linux MYCFLAGS=-fPIC && make install && cd .. \
&& tar zxvf libev.tar.gz && cd libev* && ./configure --prefix=/usr/local && make && make install \
&& rm -rf /roo/download /var/cache/yum \
&& git clone https://github.com/CandyMi/core_framework /app \
&& cd /app && make build
# 使用者可在启动容器时使用-v命令将您的代码目录直接挂载到/app/script目录进行调试操作
WORKDIR /app
ENTRYPOINT ["./cfadmin"]