forked from nwnxee/unified
-
Notifications
You must be signed in to change notification settings - Fork 0
/
base.Dockerfile
37 lines (34 loc) · 1.33 KB
/
base.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
# This image is the base for NWNX:EE, it includes all the dependencies required to run NWNX and all plugins. It
# is used as an intermediary image before the freshly built binaries are dropped in.
ARG NWSERVER_IMAGE=ghcr.io/urothis/nwserver
FROM $NWSERVER_IMAGE
RUN mkdir -p /nwn/nwnx
# Install plugin run dependencies
RUN runDeps="hunspell \
default-libmysqlclient-dev \
libmariadb3 \
libpq5 \
libsqlite3-0 \
libruby2.5 \
luajit libluajit-5.1 \
libssl1.1 \
inotify-tools \
patch \
unzip \
dotnet-runtime-8.0 \
dotnet-apphost-pack-8.0 \
dotnet-runtime-7.0 \
dotnet-apphost-pack-7.0" \
installDeps="ca-certificates wget" \
&& apt-get update \
&& apt-get install -y --no-install-recommends $installDeps \
&& wget https://packages.microsoft.com/config/debian/10/packages-microsoft-prod.deb -O packages-microsoft-prod.deb \
&& dpkg -i packages-microsoft-prod.deb \
&& rm packages-microsoft-prod.deb \
&& apt-get update \
&& apt-get -y install --no-install-recommends $runDeps \
&& ln -s /usr/lib/x86_64-linux-gnu/libhunspell-?.*.so /usr/lib/x86_64-linux-gnu/libhunspell.so \
&& rm -rf /var/cache/apt /var/lib/apt/lists/*
# Patch run-server.sh with our modifications
COPY ./Scripts/Docker/run-server.patch /nwn
RUN patch /nwn/run-server.sh < /nwn/run-server.patch