diff --git a/flask-consul/Dockerfile b/flask-consul/Dockerfile index a088c8b..fb92f93 100644 --- a/flask-consul/Dockerfile +++ b/flask-consul/Dockerfile @@ -1,11 +1,10 @@ FROM python:3-alpine ADD . /flask WORKDIR /flask - -RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories \ +RUN sed -i 's/dl-cdn.alpinelinux.org/repo.huaweicloud.com/g' /etc/apk/repositories \ && apk add --no-cache gcc libc-dev libffi-dev \ && rm -rf /var/cache/apk/* \ -&& pip3 install --upgrade pip -i https://mirrors.aliyun.com/pypi/simple \ -&& pip3 install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple +&& pip3 install --upgrade pip -i https://repo.huaweicloud.com/repository/pypi/simple \ +&& pip3 install -r requirements.txt -i https://repo.huaweicloud.com/repository/pypi/simple EXPOSE 2026 CMD ["python3","./manager.py"] diff --git a/flask-consul/Dockerfile.bak_aliyun b/flask-consul/Dockerfile.bak_aliyun new file mode 100644 index 0000000..a088c8b --- /dev/null +++ b/flask-consul/Dockerfile.bak_aliyun @@ -0,0 +1,11 @@ +FROM python:3-alpine +ADD . /flask +WORKDIR /flask + +RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories \ +&& apk add --no-cache gcc libc-dev libffi-dev \ +&& rm -rf /var/cache/apk/* \ +&& pip3 install --upgrade pip -i https://mirrors.aliyun.com/pypi/simple \ +&& pip3 install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple +EXPOSE 2026 +CMD ["python3","./manager.py"] diff --git a/vue-consul/src/views/avd/index.vue b/vue-consul/src/views/avd/index.vue index 29704fe..ecfa75d 100644 --- a/vue-consul/src/views/avd/index.vue +++ b/vue-consul/src/views/avd/index.vue @@ -11,7 +11,7 @@ - + 机器人安全设置的自定义关键词请设置为:漏洞告警