use high port to add user
This commit is contained in:
parent
ff46784103
commit
a12c34574d
2 changed files with 8 additions and 3 deletions
|
@ -3,9 +3,14 @@ FROM alpine:3.20
|
||||||
RUN apk --no-cache add \
|
RUN apk --no-cache add \
|
||||||
socat
|
socat
|
||||||
|
|
||||||
ADD ./entrypoint.sh /usr/local/bin/entrypoint
|
COPY --chmod=755 ./entrypoint.sh /usr/local/bin/entrypoint
|
||||||
|
|
||||||
EXPOSE 53/udp
|
RUN addgroup -S edns \
|
||||||
|
&& adduser -S edns -G edns
|
||||||
|
|
||||||
|
USER edns
|
||||||
|
|
||||||
|
EXPOSE 11053/udp
|
||||||
|
|
||||||
ENTRYPOINT [ "entrypoint" ]
|
ENTRYPOINT [ "entrypoint" ]
|
||||||
|
|
||||||
|
|
|
@ -39,4 +39,4 @@ while [ "$#" != "0" ]; do
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
|
||||||
exec socat $debug UDP4-RECVFROM:53,fork,bind="$bind" UDP4-SENDTO:127.0.0.11:53
|
exec socat $debug UDP4-RECVFROM:11053,fork,bind="$bind" UDP4-SENDTO:127.0.0.11:53
|
Loading…
Reference in a new issue