Skip to content

Instantly share code, notes, and snippets.

@spieker
Created March 29, 2017 18:36
Show Gist options
  • Save spieker/e04be54f1544ba6dd2fcb1ce39620db2 to your computer and use it in GitHub Desktop.
Save spieker/e04be54f1544ba6dd2fcb1ce39620db2 to your computer and use it in GitHub Desktop.
Start Phoenix project with Docker
docker run -it --rm --name elixir-inst1 -v "$PWD":/usr/src/myapp -w /usr/src/myapp -e APP_NAME=foo elixir \
  mix archive.install https://github.com/phoenixframework/archives/raw/master/phoenix_new.ez; \
  apt-get update; \
  apt-get install -yy nodejs-legacy; \
  mix phoenix.new $APP_NAME; \
  cd $APP_NAME; \
  mix deps.get
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment