We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ba9b20 commit 4779930Copy full SHA for 4779930
containers/nodejs8/Dockerfile
@@ -1,6 +1,6 @@
1
-FROM alpine:3.8
+FROM alpine:3.7
2
3
-RUN apk add --no-cache nodejs=8.11.3-r1 bash
+RUN apk add --no-cache nodejs=8.9.3-r1 bash
4
COPY ./compile.sh /bin/compile.sh
5
COPY ./run.sh /bin/run.sh
6
RUN chmod 777 /bin/compile.sh; \
tests/nodejs8/runbox/run.stdin
@@ -0,0 +1 @@
+World
tests/nodejs8/runbox/script.js
@@ -0,0 +1,11 @@
+const readline = require('readline');
+
+const rl = readline.createInterface({
+ input: process.stdin,
+ output: process.stdout,
+ terminal: false
7
+});
8
9
+rl.on('line', function (line) {
10
+ console.log("Hello " + line);
11
0 commit comments