Skip to content

Commit 4779930

Browse files
downgrade nodejs
Signed-off-by: Arnav Gupta <arnav@codingblocks.com>
1 parent 7ba9b20 commit 4779930

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

containers/nodejs8/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
FROM alpine:3.8
1+
FROM alpine:3.7
22

3-
RUN apk add --no-cache nodejs=8.11.3-r1 bash
3+
RUN apk add --no-cache nodejs=8.9.3-r1 bash
44
COPY ./compile.sh /bin/compile.sh
55
COPY ./run.sh /bin/run.sh
66
RUN chmod 777 /bin/compile.sh; \

tests/nodejs8/runbox/run.stdin

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
World

tests/nodejs8/runbox/script.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
const readline = require('readline');
2+
3+
const 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+
});

0 commit comments

Comments
 (0)