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 9adce3e commit b7481d3Copy full SHA for b7481d3
adbd.Dockerfile
@@ -10,7 +10,16 @@ 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
-ADD scripts/pong-server.sh /usr/local/bin/pong-server.sh
+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
23
24
WORKDIR /home/arduino
25
EXPOSE 22
scripts/pong-server.sh
0 commit comments