Skip to content

Instantly share code, notes, and snippets.

@shafi-codez
Last active March 5, 2017 08:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shafi-codez/cd1e8927357685f3e9792194a0f70a1c to your computer and use it in GitHub Desktop.
Save shafi-codez/cd1e8927357685f3e9792194a0f70a1c to your computer and use it in GitHub Desktop.
sfdx docker
FROM ubuntu:latest
RUN apt-get update -y
RUN apt-get install software-properties-common curl wget nodejs git apt-transport-https -y
RUN add-apt-repository "deb https://cli-assets.heroku.com/branches/stable/apt ./"
RUN wget https://cli-assets.heroku.com/apt/release.key
RUN cat release.key | apt-key add -
RUN apt-get update
RUN wget https://cli-assets.heroku.com/branches/sfdx/5.6.18-c980278/heroku-v5.6.18-c980278-linux-amd64.tar.gz
RUN mkdir -p /usr/local/lib && tar -xvzf heroku-v5.6.18-c980278-linux-amd64.tar.gz -C /usr/local/lib
RUN ln -s /usr/local/lib/heroku/bin/heroku /usr/local/bin/heroku
RUN ln -s /usr/local/lib/heroku/bin/sfdx /usr/local/bin/sfdx
RUN sfdx force -v
@shafi-codez
Copy link
Author

docker build -t shafi0907/ubuntu-sfdx .

#!/bin/bash
docker run --rm -ti shafi0907/ubuntu-sfdx "$@"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment