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 ec182f2 commit 883f3cb
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,18 @@
FROM ubuntu:latest

# 将本地的 .deb 文件复制到容器中
COPY repo/openssl.deb /tmp/openssl.deb
COPY repo/ca-certificates.deb /tmp/ca-certificates.deb
#COPY repo/openssl.deb /tmp/openssl.deb
#COPY repo/ca-certificates.deb /tmp/ca-certificates.deb
COPY . /root/tgNetDisc/

# 安装容器内的 .deb 文件
RUN dpkg -i /tmp/openssl.deb && apt-get install -f \
&& dpkg -i /tmp/ca-certificates.deb && apt-get install -f \
&& rm -f /tmp/openssl.deb && rm -f /tmp/ca-certificates.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 main.go

# 将编译好的二进制文件复制到容器中
COPY tgstate /app/tgState
COPY tgState /app/tgState

# 设置工作目录
WORKDIR /app
Expand Down

0 comments on commit 883f3cb

Please sign in to comment.