-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathDockerfile
41 lines (33 loc) · 1.33 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
FROM suchja/x11client:latest
MAINTAINER Jan Suchotzki <jan@suchotzki.de>
# Inspired by monokrome/wine
ENV WINE_MONO_VERSION 0.0.8
USER root
# Install some tools required for creating the image
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
curl \
unzip \
ca-certificates
# Install wine and related packages
RUN dpkg --add-architecture i386 \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
wine \
wine32 \
&& rm -rf /var/lib/apt/lists/*
# Use the latest version of winetricks
RUN curl -SL 'https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks' -o /usr/local/bin/winetricks \
&& chmod +x /usr/local/bin/winetricks
# Get latest version of mono for wine
RUN mkdir -p /usr/share/wine/mono \
&& curl -SL 'http://sourceforge.net/projects/wine/files/Wine%20Mono/$WINE_MONO_VERSION/wine-mono-$WINE_MONO_VERSION.msi/download' -o /usr/share/wine/mono/wine-mono-$WINE_MONO_VERSION.msi \
&& chmod +x /usr/share/wine/mono/wine-mono-$WINE_MONO_VERSION.msi
# Wine really doesn't like to be run as root, so let's use a non-root user
USER xclient
ENV HOME /home/xclient
ENV WINEPREFIX /home/xclient/.wine
ENV WINEARCH win32
# Use xclient's home dir as working dir
WORKDIR /home/xclient
RUN echo "alias winegui='wine explorer /desktop=DockerDesktop,1024x768'" > ~/.bash_aliases