Skip to content

Commit

Permalink
Setting nonroot image to default to writable home directory
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelattwood committed Dec 29, 2023
1 parent b33b8c7 commit dfb9c50
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ RUN <<EOT
adduser -D -u 1000 -G nats nats

mkdir -p /nsc
chown nats:root /nsc
chmod 0775 /nsc
chown nats:root /nsc /home/nats
chmod 0775 /nsc /home/nats
EOT

ENV NKEYS_PATH /nsc/nkeys
Expand Down
1 change: 1 addition & 0 deletions docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ target "nats-box-nonroot" {
FROM nats-box
ARG USER
USER $USER:$USER
WORKDIR /home/nats
EOT

tags = get_tags_suffix("nats-box", "nonroot")
Expand Down

0 comments on commit dfb9c50

Please sign in to comment.