Skip to content

Commit b7481d3

Browse files
committed
embed the script in then dockerfile
1 parent 9adce3e commit b7481d3

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

adbd.Dockerfile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,16 @@ RUN useradd -m --create-home --shell /bin/bash --user-group --groups sudo arduin
1010
mkdir /home/arduino/ArduinoApps && \
1111
chown -R arduino:arduino /home/arduino/ArduinoApps
1212

13-
ADD scripts/pong-server.sh /usr/local/bin/pong-server.sh
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
1423

1524
WORKDIR /home/arduino
1625
EXPOSE 22

scripts/pong-server.sh

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)