Skip to content

Commit 85edb3a

Browse files
committed
hadolint updates
1 parent 5620a74 commit 85edb3a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.devcontainer/Dockerfile-plugin_dev

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ FROM netboxcommunity/netbox:${NETBOX_VARIANT}
66
ARG DEBIAN_FRONTEND=noninteractive
77

88
# Install APT packages
9+
# hadolint ignore=DL3008
910
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
1011
&& apt-get -y install --no-install-recommends curl git make openssh-client python3.10-dev sudo wget zsh \
1112
&& apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/*
@@ -19,14 +20,15 @@ ARG USERNAME=vscode
1920
ARG USER_UID=1000
2021
ARG USER_GID=$USER_UID
2122

22-
RUN useradd -md /home/vscode -s /usr/bin/zsh -u $USER_UID $USERNAME \
23+
RUN useradd -l -md /home/vscode -s /usr/bin/zsh -u $USER_UID $USERNAME \
2324
&& usermod -aG sudo $USERNAME \
2425
&& echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers \
2526
&& mkdir /opt/netbox/netbox/netbox-acls \
2627
&& chown $USERNAME:$USERNAME /opt/netbox /etc/netbox /opt/unit -R
2728

2829
USER $USERNAME
2930

31+
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
3032
# Add oh my zsh
3133
RUN wget --quiet https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh || true
3234

@@ -37,6 +39,7 @@ RUN /opt/netbox/venv/bin/pip install --no-warn-script-location netbox-initializ
3739

3840
WORKDIR /opt/netbox/netbox/netbox-acls
3941

42+
# hadolint ignore=DL3002
4043
USER root
4144

4245
COPY entrypoint-dev.sh /bin/entrypoint-dev.sh

0 commit comments

Comments
 (0)