Skip to content

Commit

Permalink
build: Remove Python from image (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese authored Jan 17, 2024
1 parent 5bd9da2 commit 447c9cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ ARG DEBCONF_NONINTERACTIVE_SEEN "true"
RUN apt-get update \
&& apt-get --no-install-recommends -y install \
curl \
novnc \
swtpm \
wimtools \
p7zip-full \
Expand All @@ -23,7 +22,7 @@ ADD https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/latest-virt

RUN chmod +x /run/*.sh

EXPOSE 3389 8006
EXPOSE 8006 3389
VOLUME /storage

ENV RAM_SIZE "4G"
Expand Down
6 changes: 3 additions & 3 deletions src/entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ set -Eeuo pipefail
echo "❯ Starting Windows for Docker v$(</run/version)..."
echo "❯ For support visit https://github.com/dockur/windows"

export DISPLAY=web
export BOOT_MODE=windows

cd /run
Expand All @@ -20,8 +19,9 @@ cd /run

trap - ERR

ln -sfn /usr/share/novnc/vnc_lite.html /usr/share/novnc/index.html
websockify -D --web /usr/share/novnc/ 8006 localhost:5900 2>/dev/null
if [[ "${DISPLAY,,}" == "web" ]]; then
nginx -e stderr
fi

mkdir -p /dev/shm/emulated_tpm
swtpm socket -t -d --tpmstate dir=/dev/shm/emulated_tpm --ctrl \
Expand Down

0 comments on commit 447c9cf

Please sign in to comment.