From f2bd47b6aa2052a7b5048e112917612a56426cd6 Mon Sep 17 00:00:00 2001 From: nhaef Date: Sat, 16 Sep 2023 16:39:59 +0200 Subject: [PATCH] Update Dockerfile --- .devcontainer/Dockerfile | 12 +++++++++--- .devcontainer/devcontainer.json | 12 +----------- 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index dbc762f..d140c5f 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -2,7 +2,13 @@ ARG VARIANT=latest FROM oven/bun:${VARIANT} RUN apt-get update \ - && chsh -s $(which bash) bun \ - && apt-get -y install git \ + && apt-get -y install --no-install-recommends \ + git \ + nano \ + vim-tiny \ && apt-get auto-remove -y \ - && apt-get clean -y \ No newline at end of file + && apt-get clean -y \ + && chsh -s $(which bash) bun \ + && echo 'export PS1="\e[01;32m\u\e[m:\e[01;34m\w\e[m\$ "' >> /home/bun/.bashrc + +USER bun \ No newline at end of file diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index e4479ef..debc3d7 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -7,21 +7,11 @@ "VARIANT": "latest" } }, - "runArgs": [ - "--hostname", - "dev" - ], "customizations": { "vscode": { "extensions": [ "dbaeumer.vscode-eslint" ] } - }, - // Use 'forwardPorts' to make a list of ports inside the container available locally. - // "forwardPorts": [], - // Use 'postCreateCommand' to run commands after the container is created. - // "postCreateCommand": "bun install", - // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. - "remoteUser": "bun" + } } \ No newline at end of file