-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
49 lines (39 loc) · 1.07 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
49
FROM ubuntu:18.04 AS base
LABEL maintainer="Micheal Waltz <docker@ecliptik.com>"
#Setup basic environment
ENV DEBIAN_FRONTEND=noninteractive \
DOOMSDAY_DEB=doomsday_2.3.1_amd64.deb \
DOOMSDAY_URL=https://files.dengine.net/archive/ \
DOOM_WAD=doom1.wad \
DOOM_URL=http://distro.ibiblio.org/pub/linux/distributions/slitaz/sources/packages/d/
#DIR
WORKDIR /app
#Download Doomsday and install
RUN apt-get update && apt-get install -y --no-install-recommends \
wget \
ca-certificates \
libncurses5 \
libqt5gui5 \
libqt5x11extras5 \
libsdl2-mixer-2.0-0 \
libxrandr2 \
libxxf86vm1 \
libfluidsynth1 \
libqt5opengl5 \
libminizip1
#Download shareware doom1 wad
RUN wget $DOOM_URL/$DOOM_WAD -O ./$DOOM_WAD
#Build image
FROM base AS build
RUN wget $DOOMSDAY_URL/$DOOMSDAY_DEB -O /tmp/$DOOMSDAY_DEB
RUN dpkg --install /tmp/$DOOMSDAY_DEB
#Runtime image
FROM base AS run
#Copy files
COPY --from=build /usr /usr
COPY . .
#Doomsday port
EXPOSE 13209
#Run doomsday-server
ENTRYPOINT [ "doomsday-server" ]
CMD [ "--version" ]