Skip to content

Commit

Permalink
chore: update devcontainer
Browse files Browse the repository at this point in the history
  • Loading branch information
schettn committed Aug 13, 2024
1 parent 8d2f196 commit 6f2e508
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 6 deletions.
15 changes: 13 additions & 2 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
FROM oven/bun:1
ARG VARIANT=latest
FROM oven/bun:${VARIANT}

WORKDIR /workspace
RUN apt-get update \
&& apt-get -y install --no-install-recommends \
git \
nano \
vim-tiny \
&& apt-get auto-remove -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
19 changes: 15 additions & 4 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
{
"name": "Devcontainer",
"build": {
"dockerfile": "./Dockerfile"
"name": "Bun",
"build": {
"dockerfile": "Dockerfile",
// Update 'VARIANT' to pick a Bun version.
"args": {
"VARIANT": "latest"
}
}
},
"customizations": {
"vscode": {
"extensions": [
"dbaeumer.vscode-eslint"
]
}
}
}

0 comments on commit 6f2e508

Please sign in to comment.