mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-04 04:04:17 +08:00
* add support for egress ranges on acl policy * add egress ranges to acl rules * add egress ranges to acl policies * Add egress ranges to acl rules * add egress ranges to fw update * fetch acl rules for egress networks * apply egress policies for devices * configure user policies for egresss routes * fix gw tag name migration * fix egress acl rules for static nodes * add egress ranges for static nodes on ingress gw * fileter acl IPs to be unique * cleanup IOT logic from peer update * make acl Rule Dst List * cleanup egress ranges from acl policies * create user group default acl policy for gateways * remove remote access name ids * rm egress ranges removal from acl policies * simplify user permissions on nodes * add additional nameservers to extclient dns * remove debug logs * fix static checks
20 lines
507 B
Docker
20 lines
507 B
Docker
#first stage - builder
|
|
FROM gravitl/go-builder:1.23.0 AS builder
|
|
ARG tags
|
|
WORKDIR /app
|
|
COPY . .
|
|
|
|
RUN GOOS=linux CGO_ENABLED=1 go build -race -ldflags="-s -w " -tags ${tags} .
|
|
# RUN go build -tags=ee . -o netmaker main.go
|
|
FROM alpine:3.21.2
|
|
|
|
# add a c lib
|
|
# set the working directory
|
|
WORKDIR /root/
|
|
RUN apk update && apk upgrade
|
|
RUN apk add --no-cache sqlite
|
|
RUN mkdir -p /etc/netclient/config
|
|
COPY --from=builder /app/netmaker .
|
|
COPY --from=builder /app/config config
|
|
EXPOSE 8081
|
|
ENTRYPOINT ["./netmaker"]
|