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 b7481d3 commit 958f0a9Copy full SHA for 958f0a9
adbd.Dockerfile
@@ -10,16 +10,7 @@ RUN useradd -m --create-home --shell /bin/bash --user-group --groups sudo arduin
10
mkdir /home/arduino/ArduinoApps && \
11
chown -R arduino:arduino /home/arduino/ArduinoApps
12
13
-RUN cat > /usr/local/bin/pong-server.sh <<'EOF'
14
-#!/bin/sh
15
-
16
-PORT=9999
17
18
-while true; do
19
- echo -n "pong" | nc -l -p $PORT
20
-done
21
-EOF
22
-RUN chmod +x /usr/local/bin/pong-server.sh
+ADD scripts/pong-server.sh /usr/local/bin/pong-server.sh
23
24
WORKDIR /home/arduino
25
EXPOSE 22
scripts/pong-server.sh
@@ -0,0 +1,7 @@
1
+#!/bin/sh
2
+
3
+PORT=9999
4
5
+while true; do
6
+ echo -n "pong" | nc -l -p $PORT
7
+done
0 commit comments