diff --git a/Dockerfile b/Dockerfile index eec1ee0..6ca7af3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,8 +5,7 @@ FROM golang:1.20-alpine WORKDIR /app # 安装git,克隆代码仓库,编译应用,然后卸载git -RUN echo 'nameserver 1.1.1.1' > /etc/resolv.conf && \ - apk add --no-cache git && \ +RUN apk add --no-cache git && \ git clone https://gitlab.ni-co.moe/shira/temp-mail-receiver.git /tmp/code && \ cd /tmp/code && \ go build -o /app/myapp && \ @@ -20,4 +19,4 @@ RUN chmod +x /app/generate-config.sh # 设置启动命令 ENTRYPOINT ["/app/generate-config.sh"] -CMD ["/app/myapp", "-c", "config.json"] \ No newline at end of file +CMD ["/app/myapp"] \ No newline at end of file