diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 00000000..504b29ad --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,17 @@ +# Use the jguer/yay-builder image as a parent image with archlinux +FROM docker.io/jguer/yay-builder + +# Install extra packages (pacman-contrib and fish) +RUN sudo pacman -Syu --noconfirm pacman-contrib fish git-delta openssh bat go + +# Set passwordless sudo for the docker user +RUN echo "docker ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/docker + +# Create a non-root user and switch to it +USER docker + +# Set the working directory +WORKDIR /workspace + +# Command to run when starting the container +CMD ["bash"] \ No newline at end of file diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 00000000..a05a5624 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,14 @@ +{ + "name": "Existing Dockerfile", + "build": { + "context": "..", + "dockerfile": "../.devcontainer/Dockerfile" + }, + "customizations": { + "vscode": { + "extensions": [ + "golang.go" + ] + } + } +}