Last active
August 29, 2015 14:07
-
-
Save nobonobo/739d5c141c040f120e7d to your computer and use it in GitHub Desktop.
wine環境構築Dockerfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 接続方法 | |
| # boot2docker on OS-Xの場合 | |
| # sudo route add 172.17.0.0 `boot2docker ip 2>/dev/null` 255.255.0.0 | |
| # open vnc://$(docker inspect -f "{{.NetworkSettings.IPAddress}}" CID):5900 | |
| FROM ubuntu:trusty | |
| ENV DEBIAN_FRONTEND noninteractive | |
| RUN sed -i 's/\/archive.ubuntu.com/\/jp.archive.ubuntu.com/g' /etc/apt/sources.list && \ | |
| apt-get update && apt-get upgrade -y -q | |
| RUN apt-get install -y software-properties-common python-software-properties && add-apt-repository -y ppa:ubuntu-wine/ppa | |
| RUN sudo dpkg --add-architecture i386 | |
| RUN apt-get update -y | |
| RUN apt-get install -y wine1.7 winetricks xvfb | |
| RUN apt-get purge -y software-properties-common python-software-properties | |
| RUN apt-get autoclean -y | |
| RUN apt-get install -y x11vnc | |
| RUN mkdir ~/.vnc | |
| RUN x11vnc -storepasswd 1234 ~/.vnc/passwd | |
| # sample | |
| RUN wget -qO Inkscape-0.48.5-1-win32.exe "http://sourceforge.net/projects/inkscape/files/inkscape/0.48.5/Inkscape-0.48.5-1-win32.exe/download?use_mirror=jaist&r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Finkscape%2Ffiles%2Finkscape%2F0.48.5%2F&use_mirror=jaist" | |
| RUN wine Inkscape-0.48.5-1-win32.exe /S | |
| RUN bash -c 'echo "wine /.wine/drive_c/Program\ Files\ \(x86\)/Inkscape/inkscape.exe" >> /.bashrc' | |
| EXPOSE 5900 | |
| CMD ["x11vnc", "-forever", "-usepw", "-create"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment