forked from DomiStyle/docker-eldewrito
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
48 lines (37 loc) · 1.17 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
# Pull ubuntu image
FROM ubuntu:18.04
# Set environment variables
ENV CONTAINER_VERSION=0.1 \
DISPLAY=:1 \
DEBIAN_FRONTEND=noninteractive \
PUID=0 \
PGID=0
# Install temporary packages
RUN apt-get update && \
apt-get install -y wget unzip software-properties-common apt-transport-https cabextract
# Install Wine stable
RUN dpkg --add-architecture i386
RUN wget -nc https://dl.winehq.org/wine-builds/winehq.key
RUN apt-key add winehq.key
RUN apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
RUN apt-get update
RUN apt-get install --no-install-recommends --assume-yes winehq-stable xvfb
# Cleanup
RUN apt-get remove -y software-properties-common apt-transport-https cabextract && \
rm -rf /var/lib/apt/lists/* && \
rm -rf .cache/
# Add the start script
ADD start.sh .
# Add the default configuration files
ADD defaults defaults
# Make start script executable and create necessary directories
RUN chmod +x start.sh && \
mkdir logs
# Set start command to execute the start script
CMD /start.sh
# Set working directory into the game directory
WORKDIR /game
# Expose necessary ports
EXPOSE 2302/udp 2303/udp
# Set volumes
VOLUME /game