devcontainer/Dockerfile

15 lines
738 B
Text
Raw Permalink Normal View History

2024-01-27 05:38:59 +03:00
ARG ARCH=
FROM ${ARCH}ubuntu:latest
2024-01-27 05:22:30 +03:00
RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && \
2024-01-27 05:38:59 +03:00
apt-get -y install software-properties-common ca-certificates curl && \
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && \
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_21.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list && \
apt-get update && \
apt-get -y install --no-install-recommends gnupg2 procps sudo git make nodejs && \
2024-01-27 05:38:59 +03:00
useradd -m -d /home/vscode -s /bin/bash vscode && adduser vscode sudo && echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
2024-01-27 05:22:30 +03:00
USER vscode
SHELL ["/bin/bash", "-c", "-l"]