Public Repository

Last pushed: a year ago
Short Description
fastdfs storage
Full Description

FROM xzchen/ubuntu
MAINTAINER Mark.chen xzchen@chaojijiangshi.cn
ENV REFRESHED_AT 2016-04-21
RUN mkdir -p /home/fastdfs
RUN mkdir -p /home/fastdfs_file/data
RUN mkdir -p /home/client
RUN ln -s /home/fastdfs_file/data /home/fastdfs_file/data/M00
WORKDIR /home/fastdfs
ADD file/FastDFS_v5.08.tar.gz /home/fastdfs
ADD file/fastdfs-nginx-module_v1.16.tar.gz /home/fastdfs/
ADD file/nginx-1.8.1.tar.gz /home/fastdfs
RUN apt-get install -y git
RUN git clone https://github.com/happyfish100/libfastcommon.git
WORKDIR /home/fastdfs/libfastcommon
RUN ./make.sh
RUN ./make.sh install
WORKDIR /home/fastdfs/FastDFS
RUN ./make.sh
RUN ./make.sh install
RUN cp -rf /usr/include/fast* /usr/local/include/
WORKDIR /home/fastdfs/nginx-1.8.1
RUN ./configure --add-module=/home/fastdfs/fastdfs-nginx-module/src
RUN make
RUN make install
WORKDIR /etc/ld.so.conf.d/
RUN touch libfastcommon.conf
RUN echo "/usr/lib64/" >> libfastcommon.conf
RUN /sbin/ldconfig -v
RUN cp /home/fastdfs/FastDFS/conf/http.conf /etc/fdfs/
RUN cp /home/fastdfs/FastDFS/conf/mime.types /etc/fdfs/
RUN cp /home/fastdfs/fastdfs-nginx-module/src/mod_fastdfs.conf /etc/fdfs/
WORKDIR /home/fastdfs/FastDFS
EXPOSE 8888

Docker Pull Command
Owner
xzchen

Comments (0)