-
Notifications
You must be signed in to change notification settings - Fork 372
Expand file tree
/
Copy pathDockerFile-realmd
More file actions
31 lines (23 loc) · 980 Bytes
/
DockerFile-realmd
File metadata and controls
31 lines (23 loc) · 980 Bytes
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
#Build image
FROM ubuntu:22.04 AS build-step
ENV TZ=US DEBIAN_FRONTEND=noninteractive
RUN apt-get -y update
RUN apt-get -y install curl autoconf automake libbz2-dev libace-dev libssl-dev libmysqlclient-dev libtool \
build-essential lsb-release software-properties-common cmake libreadline-dev clang
COPY . /mangoserver
RUN mkdir /mangoserver/build
WORKDIR /mangoserver/build
#Install mangos
RUN cmake .. -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang -DCMAKE_INSTALL_PREFIX=/mangos -DBUILD_MANGOSD=0 -DBUILD_REALMD=1 -DBUILD_TOOLS=0
RUN make -j4
RUN make install
#Runtime image
FROM ubuntu:22.04 AS runtime
RUN apt-get -y update && apt-get -y upgrade
RUN apt-get -y install libmysqlclient-dev openssl
COPY --from=build-step /mangos /mangos
COPY --from=build-step /mangos/etc/realmd.conf.dist /mangos/etc/realmd.conf.dist
WORKDIR /mangos/bin
RUN chmod +x realmd
EXPOSE 3724
ENTRYPOINT [ "./realmd","-c","/mangos/etc/realmd.conf" ]