diff --git a/.github/workflows/dependabot.auto.yml b/.github/workflows/dependabot.auto.yml index cd89b2e..8e54277 100644 --- a/.github/workflows/dependabot.auto.yml +++ b/.github/workflows/dependabot.auto.yml @@ -10,14 +10,14 @@ jobs: - name: Auto approve uses: actions/github-script@v4 with: - script: | - const result = await github.pulls.createReview({ - owner: context.repo.owner, - repo: context.repo.repo, - pull_number: context.issue.number, - event: "APPROVE" - }) - console.log(result.status) + script: | + const result = await github.pulls.createReview({ + owner: context.repo.owner, + repo: context.repo.repo, + pull_number: context.issue.number, + event: "APPROVE" + }) + console.log(result.status) automerge: name: Auto merge after successful checks diff --git a/Dockerfile b/Dockerfile index 3954f10..060f642 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,9 @@ -# Use the base image +# DO NOT CHANGE THE BASE IMAGE FROM mcr.microsoft.com/devcontainers/base:ubuntu-22.04 - +# DO NOT CHANGE THE DEFAULT USER ARG DOCKERUSER=vscode + +# Config sudoers and assign permission to non-root user RUN \ echo '${DOCKERUSER} ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers && \ mkdir -p /home/${DOCKERUSER}/.local/bin /home/${DOCKERUSER}/.config && \ @@ -9,9 +11,8 @@ RUN \ # Install Node.js 18 RUN \ - apt-get update && apt-get install --no-install-recommends -y git curl sudo wget vim && \ curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \ - apt-get update && apt-get install --no-install-recommends -y nodejs && \ + apt-get update && apt-get install --no-install-recommends -y nodejs git sudo vim && \ apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* # Install yarn @@ -20,7 +21,7 @@ RUN \ USER ${DOCKERUSER} -# Install starship for non-root user +# Install starship for non-root user with pure prompt RUN \ sh -c "$(curl -fsSL https://starship.rs/install.sh)" -- --yes -b /home/${DOCKERUSER}/.local/bin && \ echo 'eval "$(starship init bash && starship preset pure-preset -o ~/.config/starship.toml)"' >> /home/${DOCKERUSER}/.bashrc