Skip to content

Commit

Permalink
add bun
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinGruber committed May 1, 2024
1 parent d8a06f8 commit 1e02d10
Show file tree
Hide file tree
Showing 3 changed files with 118 additions and 43 deletions.
150 changes: 107 additions & 43 deletions templates.json
Original file line number Diff line number Diff line change
@@ -1,45 +1,109 @@
[
{"name":"Deno app",
"installs":[
{"name":"Deno app alpine OS","path":"../templates/dockerfiles/Deno_app_alpine.dockerfile"},
{"name":"Deno app binary only","path":"../templates/dockerfiles/Deno_app_bin.dockerfile"}
]
},
{"name":"Nodejs app",
"installs":[
{"name":"Nodejs app with npm","path":"../templates/dockerfiles/Nodejs_app.dockerfile","ignoreFilePath":"../templates/ignorefiles/Nodejs_app"},
{"name":"Nodejs app with yarn","path":"../templates/dockerfiles/Nodejs_app_yarn.dockerfile","ignoreFilePath":"../templates/ignorefiles/Nodejs_app"}
]
},
{"name":"Reactjs app",
"installs":[
{"name":"Reactjs app with npm","path":"../templates/dockerfiles/Reactjs_app.dockerfile","ignoreFilePath":"../templates/ignorefiles/Reactjs_app"},
{"name":"Reactjs app with yarn","path":"../templates/dockerfiles/Reactjs_app_yarn.dockerfile","ignoreFilePath":"../templates/ignorefiles/Reactjs_app"}
]
},
{"name":"Vuejs app",
"installs":[
{"name":"Vuejs app with npm","path":"../templates/dockerfiles/Vuejs_app.dockerfile","ignoreFilePath":"../templates/ignorefiles/Vuejs_app"},
{"name":"Vuejs app with yarn","path":"../templates/dockerfiles/Vuejs_app_yarn.dockerfile","ignoreFilePath":"../templates/ignorefiles/Vuejs_app"}
{
"name": "Deno app",
"installs": [
{
"name": "Deno app alpine OS",
"path": "../templates/dockerfiles/Deno_app_alpine.dockerfile"
},
{
"name": "Deno app binary only",
"path": "../templates/dockerfiles/Deno_app_bin.dockerfile"
}
]
},
{
"name": "Nodejs app",
"installs": [
{
"name": "Nodejs app with npm",
"path": "../templates/dockerfiles/Nodejs_app.dockerfile",
"ignoreFilePath": "../templates/ignorefiles/Nodejs_app"
},
{
"name": "Nodejs app with yarn",
"path": "../templates/dockerfiles/Nodejs_app_yarn.dockerfile",
"ignoreFilePath": "../templates/ignorefiles/Nodejs_app"
}
]
},
{
"name": "Bun app",
"installs": [
{
"name": "Bun app with bun package manager",
"path": "../templates/dockerfiles/Bun_app.dockerfile",
"ignoreFilePath": "../templates/ignorefiles/Bun_app"
}
]
},
{
"name": "Reactjs app",
"installs": [
{
"name": "Reactjs app with npm",
"path": "../templates/dockerfiles/Reactjs_app.dockerfile",
"ignoreFilePath": "../templates/ignorefiles/Reactjs_app"
},
{
"name": "Reactjs app with yarn",
"path": "../templates/dockerfiles/Reactjs_app_yarn.dockerfile",
"ignoreFilePath": "../templates/ignorefiles/Reactjs_app"
}
]
},
{
"name": "Vuejs app",
"installs": [
{
"name": "Vuejs app with npm",
"path": "../templates/dockerfiles/Vuejs_app.dockerfile",
"ignoreFilePath": "../templates/ignorefiles/Vuejs_app"
},
{
"name": "Vuejs app with yarn",
"path": "../templates/dockerfiles/Vuejs_app_yarn.dockerfile",
"ignoreFilePath": "../templates/ignorefiles/Vuejs_app"
}
]
},
{
"name": "Angular app",
"installs": [
{
"name": "Angular app with npm",
"path": "../templates/dockerfiles/Angular_app.dockerfile",
"ignoreFilePath": "../templates/ignorefiles/Angular_app"
},
{
"name": "Angular app with yarn",
"path": "../templates/dockerfiles/Angular_app_yarn.dockerfile",
"ignoreFilePath": "../templates/ignorefiles/Angular_app"
}
]
},
{
"name": "Rust app",
"installs": [
{
"name": "Rust app with cargo",
"path": "../templates/dockerfiles/Rust_app_cargo.dockerfile",
"ignoreFilePath": "../templates/ignorefiles/Rust_app_cargo"
},
{
"name": "Rust app with rustc",
"path": "../templates/dockerfiles/Rust_app_rustc.dockerfile"
}
]
},
{
"name": "Go app",
"installs": [
{
"name": "Go app ",
"path": "../templates/dockerfiles/Go_app.dockerfile"
}
]
}
]

]
},
{"name":"Angular app",
"installs":[
{"name":"Angular app with npm","path":"../templates/dockerfiles/Angular_app.dockerfile","ignoreFilePath":"../templates/ignorefiles/Angular_app"},
{"name":"Angular app with yarn","path":"../templates/dockerfiles/Angular_app_yarn.dockerfile","ignoreFilePath":"../templates/ignorefiles/Angular_app"}
]
},
{"name":"Rust app",
"installs":[
{"name":"Rust app with cargo","path":"../templates/dockerfiles/Rust_app_cargo.dockerfile","ignoreFilePath":"../templates/ignorefiles/Rust_app_cargo"},
{"name":"Rust app with rustc","path":"../templates/dockerfiles/Rust_app_rustc.dockerfile"}

]
},
{"name":"Go app",
"installs":[
{"name":"Go app ","path":"../templates/dockerfiles/Go_app.dockerfile"}
]
}
]
6 changes: 6 additions & 0 deletions templates/dockerfiles/Bun_app.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM oven/bun
WORKDIR /usr/src/app
COPY . .
RUN bun i
EXPOSE 3000
CMD [ "bun", "start" ]
5 changes: 5 additions & 0 deletions templates/ignorefiles/Bun_app
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/node_modules
.gitignore
.gitattributes
LICENSE
README.md

0 comments on commit 1e02d10

Please sign in to comment.