File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- ARG UBUNTU_VERSION=22.04
2- FROM ubuntu:${UBUNTU_VERSION}
3-
4- # Avoid interactive prompts during package installation
5- ENV DEBIAN_FRONTEND=noninteractive
6-
7- # Install packages as root
8- RUN apt-get update && apt-get install -y \
9- build-essential \
10- wget \
11- curl \
12- libffi-dev \
13- libsqlite3-dev \
14- software-properties-common \
15- ca-certificates \
16- lsb-release \
17- apt-transport-https \
18- telnet \
19- sudo \
20- git \
21- && rm -rf /var/lib/apt/lists/*
22-
23- # Create vscode user with same setup as devcontainer
24- ARG USERNAME=vscode
25- ARG USER_UID=1000
26- ARG USER_GID=1000
27-
28- RUN groupadd --gid ${USER_GID} ${USERNAME} \
29- && useradd --uid ${USER_UID} --gid ${USER_GID} -m ${USERNAME} -s /bin/bash \
30- && echo "${USERNAME} ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/${USERNAME} \
31- && chmod 0440 /etc/sudoers.d/${USERNAME}
32-
33- # Switch to vscode user
34- USER vscode
35- WORKDIR /home/vscode
36-
37- ENV DEBIAN_FRONTEND=dialog
1+ ARG UBUNTU_VERSION
2+ FROM mcr.microsoft.com/devcontainers/base:ubuntu-${UBUNTU_VERSION}
You can’t perform that action at this time.
0 commit comments