- Add MyIPD service on port 8080.
This commit is contained in:
12
Dockerfile
12
Dockerfile
@@ -37,15 +37,23 @@ command=/bin/bash -c `microsocks ${MICROSOCKS_OPTIONS}`
|
||||
user=microsocks'
|
||||
#---------------------------------------------------------------------------------------------------------------
|
||||
|
||||
#---------------------------------------------------------------------------------------------------------------
|
||||
ARG MYIPD_INI='[program:myipd] \n\
|
||||
directory='${MICROSOCKS_HOME}' \n\
|
||||
command=/bin/bash -c `while true; do myip | nc -l -q 0 ${MYIPD_PORT}; done` \n\
|
||||
user=microsocks'
|
||||
#---------------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
RUN urpmi.update -a \
|
||||
&& urpmi --force microsocks \
|
||||
&& urpmi --force microsocks netcat-openbsd \
|
||||
&& mkdir ${MICROSOCKS_LIB} \
|
||||
&& useradd -M --home-dir ${MICROSOCKS_HOME} --password "" microsocks \
|
||||
&& echo -e "${MICROSOCKSD}" | sed -e "s/\`/'/g" -e 's/ *$//' > /etc/init.d/microsocksd \
|
||||
&& chmod a+x /etc/init.d/microsocksd \
|
||||
&& ln -s /etc/init.d/microsocksd /etc/rcD.d/S30microsocksd \
|
||||
&& echo -e "${MICROSOCKSD_INI}" | sed -e "s/\`/'/g" -e 's/ *$//' > /etc/supervisord.d/microsocksd.ini
|
||||
&& echo -e "${MICROSOCKSD_INI}" | sed -e "s/\`/'/g" -e 's/ *$//' > /etc/supervisord.d/microsocksd.ini \
|
||||
&& echo -e "${MYIPD_INI}" | sed -e "s/\`/'/g" -e 's/ *$//' > /etc/supervisord.d/myipd.ini
|
||||
|
||||
EXPOSE ${MICROSOCKS_PORT}
|
||||
|
||||
Reference in New Issue
Block a user