Skip to content

Instantly share code, notes, and snippets.

@iamjohnmills
Last active May 16, 2026 14:54
Show Gist options
  • Select an option

  • Save iamjohnmills/a26f6e6a45a7cf166cdc1bb2f5b1c140 to your computer and use it in GitHub Desktop.

Select an option

Save iamjohnmills/a26f6e6a45a7cf166cdc1bb2f5b1c140 to your computer and use it in GitHub Desktop.
Docker Quick Start New Setup
# NODE 16 IMAGE
docker build -t node-16 .

# NEW NODE 16 CONTAINER
docker run -d -it -v $(pwd):/src -p 5000:3000 -p 5001:3001 -e LANG='en_US.UTF-8' -e LANGUAGE='en_US:en' -e LC_ALL='en_US.UTF-8' --hostname node-github --name node-github node-16

# DOCKER SSH
docker exec -it <container-name> /bin/sh

# INSTALL ZSH
apt install zsh
touch ~/.zshrc
echo "export PROMPT='%b%F{white}@docker%f%b %B%F{white}%1d%f%b %B%F{cyan}#%b%f '" >> ~/.zshrc
source ~/.zshrc
chsh -s /bin/zsh

# INSTALL VITE
npm i vite -g

# Stop Server, then restart with
docker exec -it -w /src <container-name> /bin/zsh

# START
vite --host --port 3000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment