File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ FROM netboxcommunity/netbox:${NETBOX_VARIANT}
6
6
ARG DEBIAN_FRONTEND=noninteractive
7
7
8
8
# Install APT packages
9
+ # hadolint ignore=DL3008
9
10
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
10
11
&& apt-get -y install --no-install-recommends curl git make openssh-client python3.10-dev sudo wget zsh \
11
12
&& apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/*
@@ -19,14 +20,15 @@ ARG USERNAME=vscode
19
20
ARG USER_UID=1000
20
21
ARG USER_GID=$USER_UID
21
22
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 \
23
24
&& usermod -aG sudo $USERNAME \
24
25
&& echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers \
25
26
&& mkdir /opt/netbox/netbox/netbox-acls \
26
27
&& chown $USERNAME:$USERNAME /opt/netbox /etc/netbox /opt/unit -R
27
28
28
29
USER $USERNAME
29
30
31
+ SHELL ["/bin/bash", "-o", "pipefail", "-c"]
30
32
# Add oh my zsh
31
33
RUN wget --quiet https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh || true
32
34
@@ -37,6 +39,7 @@ RUN /opt/netbox/venv/bin/pip install --no-warn-script-location netbox-initializ
37
39
38
40
WORKDIR /opt/netbox/netbox/netbox-acls
39
41
42
+ # hadolint ignore=DL3002
40
43
USER root
41
44
42
45
COPY entrypoint-dev.sh /bin/entrypoint-dev.sh
You can’t perform that action at this time.
0 commit comments