added devcontainers
This commit is contained in:
@@ -1,9 +1,6 @@
|
||||
{
|
||||
"name": "Java 21 Dev Container",
|
||||
"image": "mcr.microsoft.com/openjdk/jdk:21-ubuntu",
|
||||
"settings": {
|
||||
"java.home": "/usr/lib/jvm/msopenjdk-21-amd64"
|
||||
},
|
||||
"features": {
|
||||
"ghcr.io/devcontainers/features/java:1": {
|
||||
"installMaven": "true"
|
||||
15
ui/.devcontainer/Dockerfile
Normal file
15
ui/.devcontainer/Dockerfile
Normal file
@@ -0,0 +1,15 @@
|
||||
ARG VARIANT=latest
|
||||
FROM oven/bun:${VARIANT}
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get -y install --no-install-recommends \
|
||||
ca-certificates \
|
||||
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
|
||||
10
ui/.devcontainer/devcontainer.json
Normal file
10
ui/.devcontainer/devcontainer.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"name": "Bun",
|
||||
"build": {
|
||||
"dockerfile": "Dockerfile",
|
||||
// Update 'VARIANT' to pick a Bun version.
|
||||
"args": {
|
||||
"VARIANT": "latest"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user