luke5542 / LanguageComparison

A comparison of various programming languages for similar problems to demonstrate the syntactic and run-time differences.
0 stars 3 forks source link

C# Version, and Dockerfile improvements #9

Closed georgevanburgh closed 9 years ago

georgevanburgh commented 9 years ago

Added C# version, and associated build/run scripts.

Also improved Dockerfile to correctly invalidate the cache when new code is checked in - like so:

ADD https://github.com/luke5542/LanguageComparison/archive/master.zip /root/

...will hash the latest zip file from the master branch, and only run the following layers if the hash is different from the last build.

# Compile all the code
RUN \
  cd /root && \
  unzip master && \
  cd LanguageComparison-master && \
  ./compile-all

Will the compile the code as before.