Skip to content

Commit f716f20

Browse files
Copilotjhulten
andcommitted
Fix mise installation to run as toolsmith user
Co-authored-by: jhulten <[email protected]>
1 parent 679a0c4 commit f716f20

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

chezmoi/Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,13 @@ LABEL org.opencontainers.image.licenses="MIT"
88

99
ENV DEBIAN_FRONTEND=noninteractive
1010

11-
USER root
11+
USER toolsmith
12+
WORKDIR /home/toolsmith
1213

1314
# Install chezmoi using mise
1415
ARG CHEZMOI_VERSION=2.56.1
1516
RUN mise use --global aqua:twpayne/chezmoi@${CHEZMOI_VERSION}
1617

17-
USER toolsmith
18-
WORKDIR /home/toolsmith
19-
2018
# Optional: Initialize chezmoi with a dotfiles repo
2119
# WARNING: This will execute code from the dotfiles repository during build.
2220
# Only use with trusted repositories.

0 commit comments

Comments
 (0)