Compare commits

...

3 Commits

Author SHA1 Message Date
Juansecu
6ea22ffbdf
Merge 2096c3c3cc into 145113062b 2024-10-05 16:53:20 -05:00
CakeLancelot
145113062b Update tdata reference to fix invalid label 2024-10-05 16:51:39 -05:00
Juansecu
2096c3c3cc BUILD - Optimize Dockerfile by using alpine as base image 2024-06-08 21:55:03 -05:00
3 changed files with 15 additions and 9 deletions

View File

@ -1,28 +1,33 @@
# build
FROM debian:stable-slim as build
FROM alpine:3 as build
WORKDIR /usr/src/app
RUN apt-get -y update && apt-get install -y \
RUN apk update && apk upgrade && apk add \
linux-headers \
git \
clang \
clang18 \
make \
libsqlite3-dev
sqlite-dev
COPY src ./src
COPY vendor ./vendor
COPY .git ./.git
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
# prod
FROM debian:stable-slim
FROM alpine:3
WORKDIR /usr/src/app
RUN apt-get -y update && apt-get install -y \
libsqlite3-dev
RUN apk update && apk upgrade && apk add \
libstdc++ \
sqlite-dev
COPY --from=build /usr/src/app/bin/fusion /bin/fusion
COPY sql ./sql

View File

@ -1,5 +1,6 @@
#pragma once
#include <stdint.h>
#include <string>
namespace settings {
@ -14,7 +15,7 @@ namespace settings {
extern std::string SHARDSERVERIP;
extern bool LOCALHOSTWORKAROUND;
extern bool ANTICHEAT;
extern time_t TIMEOUT;
extern int64_t TIMEOUT;
extern int VIEWDISTANCE;
extern bool SIMULATEMOBS;
extern int SPAWN_X;

2
tdata

@ -1 +1 @@
Subproject commit 40c1dd14938f41684bb19c946828b9162ea4239e
Subproject commit bdb611b092b43b2490f9f3866374a49d811c0826