mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-06 03:46:02 +08:00
rm libpcap dependency
This commit is contained in:
parent
d5446fb302
commit
664f085599
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue