From 4fae1ebd3c91f185ee45e3c5cac26ef7d59ffb94 Mon Sep 17 00:00:00 2001 From: devttl Date: Wed, 25 Sep 2024 16:37:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9DockerFile=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 76b244d..6d8133d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,7 +21,8 @@ WORKDIR ${WORK_PATH} # 从构建阶段复制二进制文件 COPY --from=builder ${WORK_PATH}/main . -COPY --from=0 ${WORK_PATH}/config/config.yaml . +COPY --from=0 ${WORK_PATH}/config/config.yaml ./config/ +COPY --from=0 ${WORK_PATH}/config/google.xdb ./config/ # 暴露端口 EXPOSE 80 @@ -30,4 +31,4 @@ EXPOSE 80 # ENTRYPOINT ./main -c config.docker.toml ############################################### -CMD ["./main","-c","config.yaml"] \ No newline at end of file +CMD ["./main","-c","./config/config.yaml"] \ No newline at end of file