代码拉取完成,页面将自动刷新
FROM ubuntu:20.04
MAINTAINER liangwu<liangwu.lxy@foxmail.com>
ENV WORKSPACE='/home/fastdfs'
WORKDIR ${WORKSPACE}
RUN cp /etc/apt/sources.list /etc/apt/sources.list.bak \
&& echo "deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse \n\
deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse \n\
deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse \n\
deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse \n"\
> /etc/apt/sources.list
RUN apt update
RUN apt-get install -y wget git vim
RUN apt-get install -y perl bzip2 libssl-dev\
gcc g++ build-essential libtool libz-dev libpcre3-dev
RUN apt-get install -y make
RUN apt-get install -y redis
RUN apt-get install -y mysql-server
RUN git clone https://gitee.com/fastdfs100/libfastcommon.git \
&& cd libfastcommon \
&& git checkout V1.0.50 \
&& ./make.sh \
&& ./make.sh install
RUN git clone https://gitee.com/fastdfs100/fastdfs.git \
&& cd fastdfs \
&& git checkout V6.07 \
&& ./make.sh \
&& ./make.sh install \
&& cp conf/http.conf /etc/fdfs/ \
&& cp conf/mime.types /etc/fdfs
# Create fastdfs configure directory
RUN mkdir -p ${WORKSPACE}/tracker \
&& mkdir -p ${WORKSPACE}/storage \
&& mkdir -p ${WORKSPACE}/client
RUN git clone https://github.com/happyfish100/fastdfs-nginx-module.git \
&& cd fastdfs-nginx-module \
&& git checkout V1.22 \
&& cp src/mod_fastdfs.conf /etc/fdfs/ \
&& mkdir -p ${WORKSPACE}/mod_fastdfs
RUN wget http://www.grid.net.ru/nginx/download/nginx_upload_module-2.2.0.tar.gz \
&& tar -zxvf nginx_upload_module-2.2.0.tar.gz \
&& git clone https://github.com/winshining/nginx-upload-module.git \
&& cd nginx-upload-module \
&& cp -arf * ../nginx_upload_module-2.2.0
RUN wget http://nginx.org/download/nginx-1.16.1.tar.gz \
&& tar -zxvf nginx-1.16.1.tar.gz \
&& cd nginx-1.16.1/ \
&& ./configure \
--with-http_stub_status_module \
--with-http_ssl_module \
--with-http_realip_module \
--with-http_v2_module \
--add-module=${WORKSPACE}/fastdfs-nginx-module/src \
--add-module=${WORKSPACE}/nginx_upload_module-2.2.0 \
&& make && make install
RUN git clone https://gitee.com/coolhouse/graph-bed-shared-cloud.git \
&& cd graph-bed-shared-cloud \
&& git switch dev \
&& mkdir build && cd build \
&& cmake ../src/ && make && ./tc_http_server\
&& cp ./conf/storage_single.conf /etc/fdfs/ \
&& cp ./conf/tracker_single.conf /etc/fdfs/ \
&& cp ./conf/client_single.conf /etc/fdfs/ \
&& cp ./conf/mod_fastdfs_single.conf /etc/fdfs/
EXPOSE 80
CMD /bin/bash
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。