From f140d88e1bc595012fb65860a430d16c774f944a Mon Sep 17 00:00:00 2001 From: myitinos Date: Sun, 17 Feb 2019 00:25:25 +0800 Subject: [PATCH] changed port 2020->20202 --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6ba2aa8..517d4e8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # Use ubuntu 16.04 FROM ubuntu:16.04 -EXPOSE 2020 +EXPOSE 20202 RUN apt-get update # install socat editor ssh @@ -25,6 +25,6 @@ RUN chmod 775 /chall/version002 # Run Service -RUN echo '#!/bin/bash'"\n(socat TCP-LISTEN:2020,reuseaddr,fork EXEC:"/chall/version002,su=nobody")" > /var/tmp/.start.sh && chmod +x /var/tmp/.start.sh +RUN echo '#!/bin/bash'"\n(socat TCP-LISTEN:20202,reuseaddr,fork EXEC:"/chall/version002,su=nobody")" > /var/tmp/.start.sh && chmod +x /var/tmp/.start.sh CMD ["/var/tmp/.start.sh"]