From 2a70c9346719bfdf3f2a8e8a81fc59b6878ace0b Mon Sep 17 00:00:00 2001 From: Yohann <75626191+Yohann0617@users.noreply.github.com> Date: Mon, 22 Jan 2024 01:08:44 +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 | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 374633a..ab0eae8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,12 +7,11 @@ FROM ubuntu:latest COPY . /root/tgNetDisc/ # 安装容器内的 .deb 文件 -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 - -RUN cp /root/tgNetDisc/tgState /app/tgState \ +RUN dpkg -i /root/tgNetDisc/repo/openssl.deb && apt-get install -f \ + && dpkg -i /root/tgNetDisc/repo/ca-certificates.deb && apt-get install -f \ + && rm -f /root/tgNetDisc/repo/openssl.deb && rm -f /root/tgNetDisc/repo/ca-certificates.deb \ + && cd /root/tgNetDisc && go build -o tgState main.go \ + && cp /root/tgNetDisc/tgState /app/tgState \ && rm -rf /root/tgNetDisc # 将编译好的二进制文件复制到容器中