Skip to content

Commit 958f0a9

Browse files
committed
Revert "embed the script in then dockerfile"
This reverts commit b7481d3.
1 parent b7481d3 commit 958f0a9

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

adbd.Dockerfile

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,7 @@ 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-
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
13+
ADD scripts/pong-server.sh /usr/local/bin/pong-server.sh
2314

2415
WORKDIR /home/arduino
2516
EXPOSE 22

scripts/pong-server.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)