Skip to content

Commit d1f2154

Browse files
committed
Add "mutants" unix user to container
Some tests suits (e.g. Conserve) don't expect to run as root and get spurious failures. Running as non-root should give a better experience.
1 parent 4721bd4 commit d1f2154

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ FROM rust:latest AS build
33
RUN apt update
44
RUN apt install -y s3cmd tar zstd awscli clang build-essential
55
RUN cargo install --locked cargo-nextest
6+
RUN adduser --disabled-password --gecos "mutants-remote" mutants
67
RUN --mount=type=bind,source=.,target=/src,rw cargo install --locked --path=/src --target-dir=/build
78

89
# FROM rust:latest AS final

0 commit comments

Comments
 (0)