forked from ticky/OpenTTD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
53 lines (43 loc) · 989 Bytes
/
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
50
51
52
53
FROM alpine:3.12
MAINTAINER Jessica Stokes <[email protected]>
WORKDIR /tmp/workdir
ADD . /tmp/workdir
RUN apk add \
--no-cache \
xvfb \
x11vnc \
xdpyinfo \
libstdc++ \
freetype \
icu \
libpng \
sdl \
zlib
RUN apk add \
--no-cache \
--virtual .makedepends \
linux-headers \
build-base \
curl \
freetype-dev \
icu-dev \
libpng-dev \
sdl-dev \
zlib-dev
# OpenTTD configuration borrowed from Alpine's own package https://git.alpinelinux.org/aports/tree/testing/openttd/APKBUILD
RUN ./configure \
--prefix-dir=/usr \
--binary-dir=bin \
--with-sdl \
--with-zlib \
--with-freetype \
make && \
make install
WORKDIR /openttd
RUN apk del .makedepends && \
rm -rf /tmp/workdir
ADD docker-entrypoint.sh /bin
ENV DISPLAY=":0"
ENV X_SCREEN_DIMENSIONS="640x480x24+32"
ENV VNC_PASSWORD="OpenTTD"
CMD ["docker-entrypoint.sh"]