Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
nhaef committed Sep 16, 2023
1 parent 398963b commit f2bd47b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
12 changes: 9 additions & 3 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
&& 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
12 changes: 1 addition & 11 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

0 comments on commit f2bd47b

Please sign in to comment.