Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Getting serverless framework working on Ubuntu 18.04 ec2 (with docker and a few other packages)
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
sudo apt update
sudo apt install -y default-jdk
sudo apt-get install -y xdg-utils #needed for serverless login
npm install
sudo apt install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository -y "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
sudo apt install -y docker-ce
sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker
serverless login
# You'll need to open a link in a browser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment