lns/Dockerfile
Claude e107d6b3a7
fix(dns): change default DNS port from 5353 to 5354
Port 5353 conflicts with system mDNS (avahi). Port 5354 avoids the
conflict while remaining in the same range. Dockerfile updated to match.

Co-Authored-By: Charon <charon@lethean.io>
2026-04-02 05:08:27 +01:00

14 lines
339 B
Docker

FROM golang:1.26-alpine AS build
WORKDIR /app
COPY go.mod go.sum ./
ENV GOWORK=off
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOWORK=off go build -o lns ./cmd/lns
FROM alpine:latest
RUN apk add --no-cache ca-certificates
COPY --from=build /app/lns /usr/local/bin/
EXPOSE 5354/udp 5354/tcp 5553
ENTRYPOINT ["lns"]
CMD ["--mode=light"]