1
0
Files
websockify-docker/Dockerfile
Anna Christina Naß 32c4a5e5fd Dockerfile Fehler
2026-04-09 13:16:12 +02:00

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"]