forked from Mudlet/Mudlet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
62 lines (54 loc) · 1.43 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
50
51
52
53
54
55
56
57
58
59
60
61
62
FROM ubuntu:20.04
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install --no-install-recommends -y \
build-essential \
ccache \
cmake \
gdb \
git \
libboost-all-dev \
libboost-dev \
libglib2.0-dev \
libglu1-mesa-dev \
libgstreamer1.0-dev \
libhunspell-dev \
liblua5.1-dev \
libpcre3-dev \
libpugixml-dev \
libpulse-dev \
libqt5opengl5-dev \
libsecret-1-dev \
libyajl-dev \
libzip-dev \
lua-filesystem \
lua-rex-pcre \
lua-sql-sqlite3 \
lua-zip \
lua5.1 \
luarocks \
mesa-common-dev \
qt5-default \
qtmultimedia5-dev \
qttools5-dev \
qt5keychain-dev \
qtcreator \
zlib1g-dev \
&& rm -rf /var/lib/apt/lists/*
RUN luarocks install lcf && \
luarocks install luautf8 && \
luarocks install lua-yajl
RUN useradd -ms /bin/bash mudlet
WORKDIR /home/mudlet
COPY --chown=mudlet:mudlet CMakeLists.txt CPPLINT.cfg mudlet.desktop mudlet.png mudlet.svg ./
COPY --chown=mudlet:mudlet 3rdparty 3rdparty
COPY --chown=mudlet:mudlet templates templates
COPY --chown=mudlet:mudlet translations translations
COPY --chown=mudlet:mudlet cmake cmake
COPY --chown=mudlet:mudlet test test
COPY --chown=mudlet:mudlet src src
USER mudlet
ARG BUILD_CORES=4
RUN mkdir build && cd build && cmake .. && cmake --build . --parallel ${BUILD_CORES}
RUN mkdir /home/mudlet/settings
VOLUME /home/mudlet/settings
CMD ["build/src/mudlet"]