-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
Copy pathDockerfile
40 lines (33 loc) · 1.07 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
FROM centos:7
LABEL maintainer="SvenDowideit@home.org.au, zhangshaomin_1990@126.com"
ENV PIKA /pika
ENV PIKA_BUILD_DIR /tmp/pika
ENV PATH ${PIKA}/bin:${PATH}
COPY . ${PIKA_BUILD_DIR}
WORKDIR ${PIKA_BUILD_DIR}
RUN rpm -ivh https://mirrors.ustc.edu.cn/epel/epel-release-latest-7.noarch.rpm && \
yum -y makecache && \
yum -y install snappy-devel && \
yum -y install protobuf-devel && \
yum -y install gflags-devel && \
yum -y install glog-devel && \
yum -y install bzip2-devel && \
yum -y install zlib-devel && \
yum -y install lz4-devel && \
yum -y install libzstd-devel && \
yum -y install gcc-c++ && \
yum -y install make && \
yum -y install which && \
yum -y install git && \
make && \
cp -r ${PIKA_BUILD_DIR}/output ${PIKA} && \
yum -y remove gcc-c++ && \
yum -y remove make && \
yum -y remove which && \
yum -y remove git && \
yum -y clean all && \
rm -rf /var/cache/yum && \
rm -rf .git && \
rm -rf ${PIKA_BUILD_DIR}
WORKDIR ${PIKA}
CMD ["sh", "-c", "${PIKA}/bin/pika -c ${PIKA}/conf/pika.conf"]