Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
17 changes: 6 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
WORKDIR /workspaces/$PROJECT