dev-containers/web-stack/README.md
2024-11-10 04:28:10 +01:00

27 lines
610 B
Markdown

# Dev containers
## Commands
Build
```
docker build \
--build-arg UID=$(id -u) \
--build-arg GID=$(id -g) \
-t web-stack .
```
Run. Mount /workspace if you want to preserve changes. Mount /workspace if you want to preserve changes.
```
podman run -it --rm \
--userns=keep-id \
--network host \
-v $HOME/.ssh:/home/dev/.ssh:ro,Z \
-v $PWD:/workspace:Z \
my-dev-container
```
## Installed tools
- Common ones: curl, git, vim, tmux, zsh. Included dotfiles.
- NVM and nodejs (lts, v18, v20, v22).
- All package managers preinstalled (npm, pnpm, yarn). Enable with `corepack enable <pm>`.