41 lines
1.0 KiB
Docker
41 lines
1.0 KiB
Docker
FROM python
|
|
|
|
RUN apt update && apt install -y jq && rm -rf /var/lib/apt/lists/*
|
|
RUN wget -P / $(curl https://api.github.com/repos/novnc/websockify/releases/latest | jq -r '.tarball_url')
|
|
RUN python3 -m pip install novnc-websockify-*.tar.gz
|
|
RUN rm -rf /novnc-websockify-* /root/.cache
|
|
|
|
RUN wget -P / https://github.com/rickparrish/fTelnet/archive/refs/heads/master.zip
|
|
WORKDIR /web
|
|
RUN unzip /fTelnet-master.zip &&\
|
|
cp fTelnet-master/release/ftelnet.css . &&\
|
|
cp fTelnet-master/release/ftelnet.norip.xfer.min.js . &&\
|
|
cp -r fTelnet-master/release/fonts fTelnet-master/release/keyboard . &&\
|
|
rm -rf /fTelnet-master.zip fTelnet-master
|
|
ADD web/index.html web/custom.css /web
|
|
|
|
VOLUME /data
|
|
|
|
EXPOSE 80
|
|
|
|
WORKDIR /opt/websockify
|
|
|
|
ENV LOCALPORT="80"
|
|
ENV DEST="box.imzadi.de:23"
|
|
ENV OPTS="--web /web"
|
|
|
|
RUN cat <<'EOF' > /entrypoint.sh
|
|
#!/bin/sh
|
|
echo "Websockify"
|
|
echo "----------"
|
|
echo "Options : $OPTS"
|
|
echo "Local Port : $LOCALPORT"
|
|
echo "Destination: $DEST"
|
|
/usr/local/bin/websockify $OPTS $LOCALPORT $DEST
|
|
EOF
|
|
|
|
RUN chmod +x /entrypoint.sh
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
|
|