Jelajahi Sumber

rm libpcap dependency

Abhishek Kondur 3 tahun lalu
induk
melakukan
664f085599
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      Dockerfile

+ 2 - 2
Dockerfile

@@ -6,13 +6,13 @@ WORKDIR /app
 COPY . .
 COPY . .
 ENV GO111MODULE=auto
 ENV GO111MODULE=auto
 
 
-RUN apk add git libpcap-dev
+RUN apk add git
 RUN GOOS=linux CGO_ENABLED=1 go build ${tags} -ldflags="-s -X 'main.version=${version}'" .
 RUN GOOS=linux CGO_ENABLED=1 go build ${tags} -ldflags="-s -X 'main.version=${version}'" .
 # RUN go build -tags=ee . -o netmaker main.go
 # RUN go build -tags=ee . -o netmaker main.go
 FROM alpine:3.16.2
 FROM alpine:3.16.2
 
 
 # add a c lib
 # add a c lib
-RUN apk add gcompat iptables wireguard-tools libpcap-dev
+RUN apk add gcompat iptables wireguard-tools
 # set the working directory
 # set the working directory
 WORKDIR /root/
 WORKDIR /root/
 RUN mkdir -p /etc/netclient/config
 RUN mkdir -p /etc/netclient/config