10 lines
305 B
Docker
10 lines
305 B
Docker
FROM library/node:lts-bookworm
|
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
RUN apt update \
|
|
&& apt install -y --no-install-recommends sudo \
|
|
&& apt autoremove -y \
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
&& echo "node ALL=(ALL) NOPASSWD: ALL" >/etc/sudoers.d/node \
|
|
&& chmod 0440 /etc/sudoers.d/node
|