Enable vnc for emulator

This commit is contained in:
2022-01-04 21:57:47 +01:00
parent e97f614cac
commit 2179aa3ce0
3 changed files with 20 additions and 2 deletions

View File

@@ -1,8 +1,16 @@
FROM alpine
FROM debian
RUN apk --update --no-cache add qemu-system-x86_64 qemu-ui-curses gdb && rm -rf /var/cache/apk/*
RUN apt-get update && \
apt-get install -y \
qemu-system-x86 \
gdb \
novnc
ENV MITTOS64 "true"
ENV BUILDROOT "/opt"
COPY run-entrypoint.sh /entrypoint.sh
ENTRYPOINT [ "/entrypoint.sh" ]
WORKDIR "/opt"

7
toolchain/run-entrypoint.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
if [[ -n "$WEBSOCK" ]]; then
websockify --web /usr/share/novnc 6080 localhost:5900 &
fi
eval "$@"