测试构建

This commit is contained in:
kerwincui
2022-05-30 02:46:24 +08:00
parent bc4686e598
commit a8f0c72a3f

View File

@@ -12,20 +12,20 @@ ENV DB_USER root
ENV DB_PASSWORD admin ENV DB_PASSWORD admin
RUN apt-get update && \ RUN apt-get update && \
RUN echo "1. 安装网络工具和设置时区" && \ echo "1. 安装网络工具和设置时区" && \
apt-get install wget -y --no-install-recommends && \ apt-get install wget -y --no-install-recommends && \
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \ ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
RUN echo "2. 更换国内源" && \ echo "2. 更换国内源" && \
wget http://qiniu.xiwen.online/Debian10.list && \ wget http://qiniu.xiwen.online/Debian10.list && \
mv Debian10.list /etc/apt/sources.list && \ mv Debian10.list /etc/apt/sources.list && \
apt update && apt upgrade -y && \ apt update && apt upgrade -y && \
RUN echo "3. 安装压缩工具" && \ echo "3. 安装压缩工具" && \
apt install zip -y && \ apt install zip -y && \
RUN echo "4. 安装nginx" && \ echo "4. 安装nginx" && \
apt-get install nginx -y --no-install-recommends && \ apt-get install nginx -y --no-install-recommends && \
RUN echo "5. 安装redis" && \ echo "5. 安装redis" && \
apt-get install redis-server -y --no-install-recommends && \ apt-get install redis-server -y --no-install-recommends && \
RUN echo "6. 修改redis配置" && \ echo "6. 修改redis配置" && \
sed -i "s/# requirepass foobared/requirepass wumei-smart/g" /etc/redis/redis.conf && \ sed -i "s/# requirepass foobared/requirepass wumei-smart/g" /etc/redis/redis.conf && \
sed -i "s/bind 127.0.0.1/# bind 127.0.0.1/g" /etc/redis/redis.conf sed -i "s/bind 127.0.0.1/# bind 127.0.0.1/g" /etc/redis/redis.conf