Last active
March 5, 2017 08:55
-
-
Save shafi-codez/cd1e8927357685f3e9792194a0f70a1c to your computer and use it in GitHub Desktop.
sfdx docker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
docker build -t shafi0907/ubuntu-sfdx .
#!/bin/bash
docker run --rm -ti shafi0907/ubuntu-sfdx "$@"