1 Star 2 Fork 2

凉屋/图床共享云存储

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
dockerfile 2.64 KB
一键复制 编辑 原始数据 按行查看 历史
凉屋 提交于 2023-11-05 19:57 +08:00 . 添加后端项目
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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/coolhouse/graph-bed-shared-cloud.git
git@gitee.com:coolhouse/graph-bed-shared-cloud.git
coolhouse
graph-bed-shared-cloud
图床共享云存储
dev

搜索帮助