diff --git a/build/Dockerfile b/build/Dockerfile index 87336d27..b5f8ed56 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -16,7 +16,7 @@ ARG BASE=github.com/wencaiwulue/kubevpn RUN sed -i s@/security.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list \ && sed -i s@/archive.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list RUN apt-get clean && apt-get update && apt-get install -y wget dnsutils vim curl \ - net-tools iptables iputils-ping lsof iproute2 tcpdump binutils traceroute \ + net-tools iptables iputils-ping lsof iproute2 tcpdump binutils traceroute ENV TZ=Asia/Shanghai \ DEBIAN_FRONTEND=noninteractive diff --git a/build/local.Dockerfile b/build/local.Dockerfile index a0aae4d6..028ed258 100644 --- a/build/local.Dockerfile +++ b/build/local.Dockerfile @@ -1,3 +1,7 @@ +FROM golang:1.19 AS builder +RUN go env -w GO111MODULE=on && go env -w GOPROXY=https://goproxy.cn,direct +RUN go install github.com/go-delve/delve/cmd/dlv@latest + FROM envoyproxy/envoy:v1.25.0 AS envoy FROM ubuntu:latest @@ -18,4 +22,5 @@ RUN apt update \ WORKDIR /app COPY bin/kubevpn /usr/local/bin/kubevpn -COPY --from=envoy /usr/local/bin/envoy /usr/local/bin/envoy \ No newline at end of file +COPY --from=envoy /usr/local/bin/envoy /usr/local/bin/envoy +COPY --from=builder /go/bin/dlv /usr/local/bin/dlv \ No newline at end of file