-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathDockerfile.realm_server
34 lines (22 loc) · 965 Bytes
/
Dockerfile.realm_server
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
FROM ubuntu:latest AS builder
WORKDIR /app
RUN apt-get update && apt-get install -y software-properties-common && add-apt-repository ppa:ubuntu-toolchain-r/ppa && apt-get update && apt-get install -y gcc-13 g++-13 cmake git zlib1g-dev libssl-dev libmariadb-dev-compat uuid-dev
COPY . /app
ENV CC=gcc-13
ENV CXX=g++-13
RUN mkdir -p build && \
cd build && \
cmake -DMMO_WITH_DEV_COMMANDS=ON -DCMAKE_BUILD_TYPE=Release /app && \
make -j4 realm_server
FROM ubuntu:latest
WORKDIR /app
RUN apt-get update && apt-get install -y libmariadb-dev-compat libssl-dev uuid-dev
RUN mkdir -p /app/config
COPY --from=builder /app/bin/realm_server /app/realm_server
COPY --from=builder /app/data/realm/updates /app/updates/realm
COPY --from=builder /app/docker/realm_server/run_server.sh /app/run_server.sh
# Copy binary from builder stage
RUN chmod +x /app/run_server.sh
EXPOSE 8092 8130 6280
# Run login_server when the container launches
CMD ["/app/run_server.sh"]