Add least privilege user
This commit is contained in:
parent
1f36054bad
commit
c5c0fac83c
|
@ -19,3 +19,5 @@ RUN --mount=type=cache,mode=0777,target=target mkdir .bin && cp target/release/k
|
|||
FROM debian:bullseye-slim as run
|
||||
RUN apt-get update && apt-get -y install ca-certificates libc6
|
||||
COPY --from=build /app/.bin/* /usr/local/bin/
|
||||
RUN adduser --system --group --no-create-home mangouser
|
||||
USER mangouser
|
||||
|
|
Loading…
Reference in New Issue