Skip to content

Commit

Permalink
Simplify Dockerfile by removing non-root user setup
Browse files Browse the repository at this point in the history
This change simplifies the Dockerfile by removing the creation of a non-root user and the subsequent user switch. This adjustment ensures that the focus remains on installing Devbox using Nix.
  • Loading branch information
jcardozo committed Sep 16, 2024
1 parent 0e3cd35 commit 215c3be
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,4 @@ ENV PATH="${PATH}:/nix/var/nix/profiles/default/bin"
CMD [ "/bin/systemd" ]

# Install Devbox using Nix
RUN nix profile install nixpkgs#devbox

# Create non-root user and group
RUN groupadd -g 1001 devbox && \
useradd -g 1001 -u 1001 devbox

# Switch to non-root user
USER devbox
RUN nix profile install nixpkgs#devbox

0 comments on commit 215c3be

Please sign in to comment.