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>
14 lines
339 B
Docker
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"]
|