Skip to content

shouldbee/docker-coffeescript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

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"

About

Dockerfile for installing CoffeeScript 1.7.1 on Ubuntu 14.04

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages