Skip to content

Commit

Permalink
Run as user 1001
Browse files Browse the repository at this point in the history
  • Loading branch information
caruccio committed Jul 10, 2024
1 parent 0d3e550 commit d6d0b9e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ ARG BUILDER
FROM $BUILDER AS builder

FROM ubuntu:24.04

COPY --from=builder /usr/local/sbin/nutcracker /
RUN mkdir /conf

RUN useradd -M -u 1001 -U nutcracker && \
install -m 755 --directory --group=nutcracker --owner=nutcracker /conf

USER 1001

ENTRYPOINT [ "/nutcracker" ]

0 comments on commit d6d0b9e

Please sign in to comment.