Skip to content

Commit 81a92a0

Browse files
committed
refactor: only include microsoft devcontainer base image
1 parent fea4258 commit 81a92a0

1 file changed

Lines changed: 2 additions & 37 deletions

File tree

dockerfiles/ubuntu/Dockerfile

Lines changed: 2 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,2 @@
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}

0 commit comments

Comments
 (0)