Skip to content

Commit

Permalink
Don't run as root in container
Browse files Browse the repository at this point in the history
  • Loading branch information
mawalu committed Feb 6, 2022
1 parent 7918aa5 commit 23474bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
2 changes: 1 addition & 1 deletion src/apiserver.nim
Original file line number Diff line number Diff line change
@@ -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"}
Expand Down

0 comments on commit 23474bc

Please sign in to comment.