Browse Source

changed port 2020->20202

master
myitinos 5 years ago
parent
commit
f140d88e1b
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      Dockerfile

+ 2
- 2
Dockerfile View File

@ -1,6 +1,6 @@
# Use ubuntu 16.04 # Use ubuntu 16.04
FROM ubuntu:16.04 FROM ubuntu:16.04
EXPOSE 2020
EXPOSE 20202
RUN apt-get update RUN apt-get update
# install socat editor ssh # install socat editor ssh
@ -25,6 +25,6 @@ RUN chmod 775 /chall/version002
# Run Service # 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"] CMD ["/var/tmp/.start.sh"]

Loading…
Cancel
Save