mirror of
https://github.com/lucaspalomodevelop/netbox-acls.git
synced 2026-03-12 23:27:23 +00:00
hadolint updates
This commit is contained in:
parent
5620a74a73
commit
85edb3a2d1
@ -6,6 +6,7 @@ FROM netboxcommunity/netbox:${NETBOX_VARIANT}
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
# Install APT packages
|
||||
# hadolint ignore=DL3008
|
||||
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
|
||||
&& apt-get -y install --no-install-recommends curl git make openssh-client python3.10-dev sudo wget zsh \
|
||||
&& apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/*
|
||||
@ -19,7 +20,7 @@ ARG USERNAME=vscode
|
||||
ARG USER_UID=1000
|
||||
ARG USER_GID=$USER_UID
|
||||
|
||||
RUN useradd -md /home/vscode -s /usr/bin/zsh -u $USER_UID $USERNAME \
|
||||
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-acls \
|
||||
@ -27,6 +28,7 @@ RUN useradd -md /home/vscode -s /usr/bin/zsh -u $USER_UID $USERNAME \
|
||||
|
||||
USER $USERNAME
|
||||
|
||||
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
||||
# Add oh my zsh
|
||||
RUN wget --quiet https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh || true
|
||||
|
||||
@ -37,6 +39,7 @@ RUN /opt/netbox/venv/bin/pip install --no-warn-script-location netbox-initializ
|
||||
|
||||
WORKDIR /opt/netbox/netbox/netbox-acls
|
||||
|
||||
# hadolint ignore=DL3002
|
||||
USER root
|
||||
|
||||
COPY entrypoint-dev.sh /bin/entrypoint-dev.sh
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user