|
@@ -6,13 +6,13 @@ WORKDIR /app
|
|
COPY . .
|
|
COPY . .
|
|
ENV GO111MODULE=auto
|
|
ENV GO111MODULE=auto
|
|
|
|
|
|
-RUN apk add git
|
|
|
|
|
|
+RUN apk add git libpcap-dev
|
|
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
|
|
|
|
|
|
+RUN apk add gcompat iptables wireguard-tools libpcap-dev
|
|
# set the working directory
|
|
# set the working directory
|
|
WORKDIR /root/
|
|
WORKDIR /root/
|
|
RUN mkdir -p /etc/netclient/config
|
|
RUN mkdir -p /etc/netclient/config
|