Skip to content

Commit

Permalink
Break apart Dockerfile steps for better debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Zorlin committed Dec 30, 2023
1 parent c0eaa36 commit a5d6fcd
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .devcontainer/Dockerfile-plugin_dev
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,10 @@ ARG USERNAME=vscode
ARG USER_UID=1001
ARG USER_GID=1001

RUN useradd -l -md /home/vscode -s /usr/bin/zsh -u $USER_UID $USERNAME \
&& usermod -aG sudo $USERNAME \
&& echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers \
&& mkdir /opt/netbox/netbox/netbox-physical-storage \
&& chown $USERNAME:$USERNAME /opt/netbox /etc/netbox /opt/unit -R
RUN useradd -l -md /home/vscode -s /usr/bin/zsh -u $USER_UID $USERNAME
RUN usermod -aG sudo $USERNAME
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
RUN chown -R $USERNAME:$USERNAME /opt/netbox /etc/netbox /opt/unit

USER $USERNAME

Expand Down

0 comments on commit a5d6fcd

Please sign in to comment.