From 9188d7a92451ade3a692364d68b80e7f0f877209 Mon Sep 17 00:00:00 2001 From: Yohann <75626191+Yohann0617@users.noreply.github.com> Date: Mon, 22 Jan 2024 01:05:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20Dockerfile?= 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 d36b4c3..374633a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,8 +10,9 @@ COPY . /root/tgNetDisc/ RUN dpkg -i /root/tgNetDisc/openssl.deb && apt-get install -f \ && dpkg -i /root/tgNetDisc/ca-certificates.deb && apt-get install -f \ && rm -f /root/tgNetDisc/openssl.deb && rm -f /root/tgNetDisc/ca-certificates.deb \ - && cd /root/tgNetDisc && go build -o tgState main.go \ - && cp /root/tgNetDisc/tgState /app/tgState \ + && cd /root/tgNetDisc && go build -o tgState + +RUN cp /root/tgNetDisc/tgState /app/tgState \ && rm -rf /root/tgNetDisc # 将编译好的二进制文件复制到容器中