-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
48 lines (39 loc) · 1.61 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
42
43
44
45
46
47
48
FROM zeroc0d3lab/ubuntu-wine
MAINTAINER ZeroC0D3 Team <zeroc0d3.team@gmail.com>
ENV DEBIAN_FRONTEND noninteractive
ENV WINE_MONO_VERSION 4.5.6
ENV WINE_GECKO_VERSION 2.40
#-----------------------------------------------------------------------------
# Wine User
#-----------------------------------------------------------------------------
ENV USERNAME wine
ENV PATH_GAMES /home/${USERNAME}/games
ENV PATH_DOOM2 /doom2
ENV PATH_RUN ${PATH_GAMES}${PATH_DOOM2}
# RUN useradd -u 1001 -d /home/${USERNAME} -m -s /bin/bash wine \
# && mkdir /tmp/.X11-unix \
# && chmod 1777 /tmp/.X11-unix
USER root
#-----------------------------------------------------------------------------
# Set Installation Repositories
#-----------------------------------------------------------------------------
RUN mkdir -p ${PATH_RUN}
#-----------------------------------------------------------------------------
# Installation Doom2
#-----------------------------------------------------------------------------
COPY games/doom2/rootfs/doom2.tar.gz ${PATH_GAMES}
COPY games/doom2/rootfs/run_doom2.sh ${PATH_RUN}/run_doom2.sh
RUN tar zxvf ${PATH_GAMES}/doom2.tar.gz \
&& chown -R ${USERNAME}:${USERNAME} ${PATH_GAMES} \
&& chmod +x -R ${PATH_GAMES} \
&& chmod 777 ${PATH_RUN}/run_doom2.sh
USER ${USERNAME}
ENV HOME /home/${USERNAME} \
WINEPREFIX /home/${USERNAME}/.wine \
WINEARCH win32 \
WINEDEBUG -all
WORKDIR ${HOME}
#-----------------------------------------------------------------------------
# Run Docker Container
#-----------------------------------------------------------------------------
CMD [${PATH_RUN}"/run_doom2.sh"]