forked from otland/forgottenserver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
37 lines (33 loc) · 815 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
FROM alpine:3.19 AS build
RUN apk add --no-cache \
build-base \
boost-dev \
cmake \
fmt-dev \
luajit-dev \
mariadb-connector-c-dev \
openssl-dev \
pugixml-dev \
samurai
COPY cmake /usr/src/forgottenserver/cmake/
COPY src /usr/src/forgottenserver/src/
COPY CMakeLists.txt CMakePresets.json /usr/src/forgottenserver/
WORKDIR /usr/src/forgottenserver
RUN cmake --preset default && cmake --build --config RelWithDebInfo --preset default
FROM alpine:3.19
RUN apk add --no-cache \
boost-iostreams \
boost-locale \
boost-system \
fmt \
luajit \
mariadb-connector-c \
openssl \
pugixml
COPY --from=build /usr/src/forgottenserver/build/tfs /bin/tfs
COPY data /srv/data/
COPY LICENSE README.md *.dist *.sql key.pem /srv/
EXPOSE 7171 7172
WORKDIR /srv
VOLUME /srv
ENTRYPOINT ["/bin/tfs"]