File tree Expand file tree Collapse file tree 12 files changed +49
-7
lines changed Expand file tree Collapse file tree 12 files changed +49
-7
lines changed Original file line number Diff line number Diff line change 11FROM alpine:3.6
22
3- RUN apk add --no-cache nodejs bash
3+ RUN apk add --no-cache nodejs=6.10.3-r1 bash
4+ COPY ./compile.sh /bin/compile.sh
45COPY ./run.sh /bin/run.sh
5- RUN chmod 777 /bin/run.sh
6+ RUN chmod 777 /bin/compile.sh; \
7+ chmod 777 /bin/run.sh
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
3- node script.js 1> run.stdout 2> run.stderr
3+ node script.js < run.stdin 1> run.stdout 2> run.stderr
Original file line number Diff line number Diff line change 1+ FROM alpine:3.7
2+
3+ RUN apk add --no-cache nodejs=8.9.3-r0 bash
4+ COPY ./compile.sh /bin/compile.sh
5+ COPY ./run.sh /bin/run.sh
6+ RUN chmod 777 /bin/compile.sh; \
7+ chmod 777 /bin/run.sh
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ node script.js < run.stdin 1> run.stdout 2> run.stderr
Original file line number Diff line number Diff line change 1+ World
Original file line number Diff line number Diff line change 1+ World
Original file line number Diff line number Diff line change 1- Hello World!
1+ Hello World
Original file line number Diff line number Diff line change 1- console . log ( "Hello World!" )
1+ var readline = require ( 'readline' ) ;
2+
3+ var rl = readline . createInterface ( {
4+ input : process . stdin ,
5+ output : process . stdout ,
6+ terminal : false
7+ } ) ;
8+
9+ rl . on ( 'line' , function ( line ) {
10+ console . log ( "Hello " + line ) ;
11+ } ) ;
Original file line number Diff line number Diff line change 1- console . log ( "Hello World!" )
1+ var readline = require ( 'readline' ) ;
2+
3+ var rl = readline . createInterface ( {
4+ input : process . stdin ,
5+ output : process . stdout ,
6+ terminal : false
7+ } ) ;
8+
9+ rl . on ( 'line' , function ( line ) {
10+ console . log ( "Hello " + line ) ;
11+ } ) ;
You can’t perform that action at this time.
0 commit comments