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 f4d6943 commit 9188d7a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

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

0 comments on commit 9188d7a

Please sign in to comment.