Skip to content

Latest commit

 

History

History
48 lines (31 loc) · 860 Bytes

README.md

File metadata and controls

48 lines (31 loc) · 860 Bytes

docker-coffeescript

Dockerfile for installing CoffeeScript 1.7.1 on Ubuntu 14.04

How to use

Check CoffeeScript version

$ docker run -it --rm shouldbee/coffeescript coffee --version

Open REPL

$ docker run -it --rm shouldbee/coffeescript coffee

Work with source codes

Make your code at docker host.

hello.coffee:

console.log("Hello World!")

Then you can run it by mounting with -w option.

$ docker run -it --rm -v `pwd`:/pwd -w /pwd shouldbee/coffeescript coffee hello.coffee
Hello World!

Also you can compile it.

$ docker run -it --rm -v `pwd`:/pwd -w /pwd shouldbee/coffeescript coffee -c hello.coffee

Tips

Alias docker command in your .bashrc:

alias coffee="docker run -it --rm -v `pwd`:/pwd -w /pwd shouldbee/coffeescript coffee"