Skip to content

Commit

Permalink
更新 Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Yohann0617 authored Jan 21, 2024
1 parent 9188d7a commit 2a70c93
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

# 将编译好的二进制文件复制到容器中
Expand Down

0 comments on commit 2a70c93

Please sign in to comment.