Don't run as root in container

autority
Martin 2022-02-06 18:44:11 +01:00
parent 7918aa5fd2
commit 23474bc89a
Signed by: mawalu
GPG Key ID: BF556F989760A7C8
2 changed files with 2 additions and 1 deletions

View File

@ -8,4 +8,5 @@ RUN nim c -d:release --passL:-static norbert.nim
FROM scratch
COPY --from=builder /build/norbert /norbert
USER 65534
ENTRYPOINT ["/norbert"]

View File

@ -1,4 +1,4 @@
import asynchttpserver, asyncdispatch, json, strtabs, base64, strutils, strformat, options, tables
import asynchttpserver, asyncdispatch, json, strtabs, base64, strutils, strformat, options
import ../lib/dns, state
const headers = {"Content-type": "text/plain; charset=utf-8"}