feat(docker) 重构Docker构建流程,使用多阶段构建并优化CI配置
This commit is contained in:
@@ -11,5 +11,5 @@ RUN \
|
||||
RUN ln -sf /usr/share/zoneinfo/${TZ} /etc/localtime && \
|
||||
echo '${TZ}' > /etc/timezone
|
||||
# redis 配置
|
||||
COPY ./redis.conf /tmp
|
||||
COPY ./docker/redis/redis.conf /tmp
|
||||
RUN cat /tmp/redis.conf > /usr/local/redis.conf
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
#/bin/bash
|
||||
set -e
|
||||
version=2.4.1
|
||||
docker build -t orion-visor-redis:${version} .
|
||||
docker tag orion-visor-redis:${version} registry.cn-hangzhou.aliyuncs.com/orionsec/orion-visor-redis:${version}
|
||||
docker tag orion-visor-redis:${version} registry.cn-hangzhou.aliyuncs.com/orionsec/orion-visor-redis:latest
|
||||
Reference in New Issue
Block a user