Sign inSign up

rpuserh/wine

By rpuserh

•Updated almost 9 years ago

Wine 2.0.3 with xvfb virtual desktop

Image
0

850

rpuserh/wine repository overview

Virtual X11 server will start if socket is not mounted To disable use : -e virtual_display='no'

⁠Dockerfile :####

FROM ubuntu:14.04 COPY entrypoint.sh /entrypoint.sh RUN apt-get -y update &&
DEBIAN_FRONTEND=noninteractive apt-get -y install software-properties-common apt-transport-https curl xvfb libxrender1 libxtst6 libxi6 &&
curl -fsSL https://dl.winehq.org/wine-builds/Release.key⁠ | apt-key add - &&
dpkg --add-architecture i386 &&
add-apt-repository https://dl.winehq.org/wine-builds/ubuntu/⁠ &&
apt-get -y update &&
DEBIAN_FRONTEND=noninteractive apt-get -y install --install-recommends winehq-stable &&
chmod +x /entrypoint.sh &&
echo 'wine ALL=(ALL) NOPASSWD:ALL' > /etc/sudoers.d/wine &&
useradd -m wine

USER wine WORKDIR /home/wine ENV HOME /home/wine

ENV DISPLAY :0 ENV virtual_display yes

ENTRYPOINT ["/entrypoint.sh"] CMD ["/bin/bash"]

⁠entrypoint.sh

#!/bin/bash if [[ $virtual_display == "yes" ]] then Xvfb $DISPLAY -screen 0 1024x768x24 </dev/null &>/dev/null & fi exec "$@"

⁠Build

docker build -t rpuserh/wine .

⁠test USE local system GUI

docker run -e virtual_display='no' --rm --volume /tmp/.X11-unix/X0:/tmp/.X11-unix/X0 rpuserh/wine wine "C:\windows\system32\notepad.exe"

⁠run USE local system GUI

docker run -e virtual_display='no' --name wine -ti --volume /home/user/Desktop/tttt:/mnt --volume /tmp/.X11-unix/X0:/tmp/.X11-unix/X0 rpuserh/wine

⁠run with display manager X11

docker run --name wine -ti --volume /home/user/Desktop/tttt:/mnt rpuserh/wine

Tag summary

Content type

Image

Digest

Size

289.9 MB

Last updated

almost 9 years ago

docker pull rpuserh/wine