mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-11-22 05:20:05 +00:00
Merge 352fa8a133
into cada1bcfd8
This commit is contained in:
commit
f0d96288e2
27
Dockerfile
27
Dockerfile
@ -1,32 +1,45 @@
|
|||||||
# build
|
# build
|
||||||
FROM debian:stable-slim as build
|
FROM alpine:3 as build
|
||||||
|
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
RUN apt-get -y update && apt-get install -y \
|
RUN apk update && apk upgrade && apk add \
|
||||||
|
linux-headers \
|
||||||
git \
|
git \
|
||||||
clang \
|
clang18 \
|
||||||
make \
|
make \
|
||||||
libsqlite3-dev
|
sqlite-dev
|
||||||
|
|
||||||
COPY src ./src
|
COPY src ./src
|
||||||
COPY vendor ./vendor
|
COPY vendor ./vendor
|
||||||
COPY .git ./.git
|
COPY .git ./.git
|
||||||
COPY Makefile CMakeLists.txt version.h.in ./
|
COPY Makefile CMakeLists.txt version.h.in ./
|
||||||
|
|
||||||
|
RUN sed -i 's/^CC=clang$/&-18/' Makefile
|
||||||
|
RUN sed -i 's/^CXX=clang++$/&-18/' Makefile
|
||||||
|
|
||||||
RUN make -j8
|
RUN make -j8
|
||||||
|
|
||||||
# prod
|
# prod
|
||||||
FROM debian:stable-slim
|
FROM alpine:3
|
||||||
|
|
||||||
|
ENV AUTHENTICATION_PORT 23000
|
||||||
|
ENV MONITORING_PORT 8003
|
||||||
|
ENV SHARDING_PORT 23001
|
||||||
|
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
RUN apt-get -y update && apt-get install -y \
|
RUN apk update && apk upgrade && apk add \
|
||||||
libsqlite3-dev
|
libstdc++ \
|
||||||
|
sqlite-dev
|
||||||
|
|
||||||
COPY --from=build /usr/src/app/bin/fusion /bin/fusion
|
COPY --from=build /usr/src/app/bin/fusion /bin/fusion
|
||||||
COPY sql ./sql
|
COPY sql ./sql
|
||||||
|
|
||||||
|
EXPOSE $AUTHENTICATION_PORT
|
||||||
|
EXPOSE $MONITORING_PORT
|
||||||
|
EXPOSE $SHARDING_PORT
|
||||||
|
|
||||||
CMD ["/bin/fusion"]
|
CMD ["/bin/fusion"]
|
||||||
|
|
||||||
LABEL Name=openfusion Version=0.0.2
|
LABEL Name=openfusion Version=0.0.2
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
namespace settings {
|
namespace settings {
|
||||||
@ -14,7 +15,7 @@ namespace settings {
|
|||||||
extern std::string SHARDSERVERIP;
|
extern std::string SHARDSERVERIP;
|
||||||
extern bool LOCALHOSTWORKAROUND;
|
extern bool LOCALHOSTWORKAROUND;
|
||||||
extern bool ANTICHEAT;
|
extern bool ANTICHEAT;
|
||||||
extern time_t TIMEOUT;
|
extern int64_t TIMEOUT;
|
||||||
extern int VIEWDISTANCE;
|
extern int VIEWDISTANCE;
|
||||||
extern bool SIMULATEMOBS;
|
extern bool SIMULATEMOBS;
|
||||||
extern int SPAWN_X;
|
extern int SPAWN_X;
|
||||||
|
Loading…
Reference in New Issue
Block a user