|
| 1 | +FROM ubuntu:15.04 |
| 2 | + |
| 3 | +MAINTAINER Jordan Schatz "[email protected]" |
| 4 | + |
| 5 | +# Let apt know that we will be running non-interactively. |
| 6 | +ENV DEBIAN_FRONTEND noninteractive |
| 7 | + |
| 8 | +# Setup i386 architecture |
| 9 | +RUN dpkg --add-architecture i386; \ |
| 10 | + echo 'deb http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu vivid main' \ |
| 11 | + >> /etc/apt/sources.list; \ |
| 12 | + apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 5A9A06AEF9CB8DB0 |
| 13 | + |
| 14 | +# Get the latest WINE |
| 15 | +RUN apt-get update; apt-get install -y wine1.7 winetricks wine-mono4.5.6 wine-gecko2.34 |
| 16 | + |
| 17 | +# Set the locale and timezone. |
| 18 | +RUN localedef -v -c -i en_US -f UTF-8 en_US.UTF-8 || : |
| 19 | +RUN echo "America/Los_Angeles" > /etc/timezone |
| 20 | +RUN dpkg-reconfigure -f noninteractive tzdata |
| 21 | + |
| 22 | +# Create a user inside the container, what has the same UID as your |
| 23 | +# user on the host system, to permit X11 socket sharing / GUI Your ID |
| 24 | +# is probably 1000, but you can find out by typing `id` at a terminal. |
| 25 | +RUN export uid=1000 gid=1000 && \ |
| 26 | + mkdir -p /home/docker && \ |
| 27 | + echo "docker:x:${uid}:${gid}:Docker,,,:/home/docker:/bin/bash" >> /etc/passwd && \ |
| 28 | + echo "docker:x:${uid}:" >> /etc/group && \ |
| 29 | + echo "docker ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/docker && \ |
| 30 | + chmod 0440 /etc/sudoers.d/docker && \ |
| 31 | + chown ${uid}:${gid} -R /home/docker |
| 32 | + |
| 33 | +ENV HOME /home/docker |
| 34 | +WORKDIR /home/docker |
| 35 | + |
| 36 | +# Add the ynab installer to the image. |
| 37 | +ADD ["http://www.youneedabudget.com/CDNOrigin/download/ynab4/liveCaptive/Win/YNAB%204_4.3.729_Setup.exe", "ynab_setup.exe"] |
| 38 | + |
| 39 | +# When it is added via the dockerfile it is owned read+write only by root |
| 40 | +RUN chown docker:docker ynab_setup.exe |
| 41 | + |
| 42 | +USER docker |
0 commit comments