-
Notifications
You must be signed in to change notification settings - Fork 12
/
Dockerfile
38 lines (34 loc) · 1.02 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
FROM alpine:3.17.3 AS build
# crypto++-dev is in edge/community
RUN apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/community/ \
build-base \
boost-dev \
cmake \
crypto++-dev \
fmt-dev \
lua \
mariadb-connector-c-dev \
pugixml-dev \
samurai
COPY cmake /usr/src/forgottenserver-downgrade/cmake/
COPY src /usr/src/forgottenserver-downgrade/src/
COPY CMakeLists.txt CMakePresets.json /usr/src/forgottenserver-downgrade/
WORKDIR /usr/src/forgottenserver-downgrade
RUN cmake --preset default && cmake --build --config RelWithDebInfo --preset default
FROM alpine:3.17.3
# crypto++ is in edge/community
RUN apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/community/ \
boost-iostreams \
boost-system \
crypto++ \
fmt \
lua \
mariadb-connector-c \
pugixml
COPY --from=build /usr/src/forgottenserver-downgrade/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"]