mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 16:41:43 +05:30
- VS code format snippets for Docker & Rust - Blink.nvim configured to pick custom snippets automatically
23 lines
701 B
JSON
23 lines
701 B
JSON
{
|
|
"Add User in Debian": {
|
|
"prefix": "userd",
|
|
"description": "Add User to Debian Container",
|
|
"body": [
|
|
"RUN groupadd -r ${1:username} && useradd -m -r -g ${1:username} ${1:username}",
|
|
"USER ${1:username}",
|
|
"WORKDIR \/${2:workdir}",
|
|
"RUN chown ${1:username}:${1:username} \/${2:workdir}"
|
|
]
|
|
},
|
|
"Add User in Alpine": {
|
|
"prefix": "usera",
|
|
"description": "Add User to Alpine Container",
|
|
"body": [
|
|
"RUN addgroup -S ${1:username} && adduser -S ${1} -G ${1}",
|
|
"USER ${1}",
|
|
"WORKDIR \/${2:workdir}",
|
|
"RUN chown ${1}:${1} \/${2}"
|
|
]
|
|
}
|
|
}
|