summaryrefslogtreecommitdiff
path: root/Dockerfile
blob: 98b578714100ff7d58023b4cdb695306e56e8dfc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
ARG ARCH=
FROM ${ARCH}ubuntu:latest

RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && \
	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 && \
	useradd -m -d /home/vscode -s /bin/bash vscode && adduser vscode sudo && echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers

USER vscode

SHELL ["/bin/bash", "-c", "-l"]