mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-11-24 22:11:04 +00:00
Compare commits
3 Commits
cd55f1641c
...
1543dac4e0
Author | SHA1 | Date | |
---|---|---|---|
1543dac4e0 | |||
|
352fa8a133 | ||
|
2096c3c3cc |
21
Dockerfile
21
Dockerfile
@ -1,28 +1,33 @@
|
|||||||
# 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 nosandbox -j$(nproc)
|
RUN make nosandbox -j$(nproc)
|
||||||
|
|
||||||
# prod
|
# prod
|
||||||
FROM debian:stable-slim
|
FROM alpine:3
|
||||||
|
|
||||||
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
|
||||||
@ -31,6 +36,6 @@ CMD ["/bin/fusion"]
|
|||||||
|
|
||||||
EXPOSE 23000/tcp
|
EXPOSE 23000/tcp
|
||||||
EXPOSE 23001/tcp
|
EXPOSE 23001/tcp
|
||||||
EXPOSE 8001/tcp
|
EXPOSE 8003/tcp
|
||||||
|
|
||||||
LABEL Name=openfusion Version=1.6.0
|
LABEL Name=openfusion Version=1.6.0
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#include <time.h>
|
||||||
|
|
||||||
namespace settings {
|
namespace settings {
|
||||||
extern int VERBOSITY;
|
extern int VERBOSITY;
|
||||||
|
Loading…
Reference in New Issue
Block a user