diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 7a0966d..8d275fc 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -14,7 +14,6 @@ "ms-vscode.cpptools-extension-pack", "ms-vscode.cpptools", "ms-vscode.cpptools-themes", - "twxs.cmake", "ms-vscode.cmake-tools", "ms-azuretools.vscode-docker", "redhat.vscode-yaml", diff --git a/Dockerfile b/Dockerfile index a572a12..769916c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,22 +1,17 @@ -FROM ubuntu:22.04 +FROM ubuntu:24.04 RUN apt-get update && DEBIAN_FRONTEND=noninteractive -RUN apt-get install -y g++ vim cmake git gdb wget libboost1.74-all-dev +RUN apt-get install -y g++ vim cmake git gdb wget libboost1.83-all-dev -ARG USERNAME=serverpp -ARG USER_UID=1000 -ARG USER_GID=$USER_UID +ARG PROJECT=serverpp +ARG USERNAME=ubuntu # Create the user -RUN groupadd --gid $USER_GID $USERNAME \ - && useradd --uid $USER_UID --gid $USER_GID -m $USERNAME --shell /bin/bash \ - # - # [Optional] Add sudo support. Omit if you don't need to install software after connecting. - && apt-get update \ +RUN apt-get update \ && apt-get install -y sudo \ && echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \ && chmod 0440 /etc/sudoers.d/$USERNAME USER $USERNAME -WORKDIR /workspaces/$USERNAME \ No newline at end of file +WORKDIR /workspaces/$PROJECT \ No newline at end of file