File tree Expand file tree Collapse file tree 2 files changed +15
-8
lines changed Expand file tree Collapse file tree 2 files changed +15
-8
lines changed Original file line number Diff line number Diff line change 11# build
2- FROM debian:stable-slim AS build
2+ FROM alpine:3 as build
33
44WORKDIR /usr/src/app
55
6- RUN apt-get -y update && apt-get install -y \
6+ RUN apk update && apk upgrade && apk add \
7+ linux-headers \
78git \
8- clang \
9+ clang18 \
910make \
10- libsqlite3 -dev
11+ sqlite -dev
1112
1213COPY src ./src
1314COPY vendor ./vendor
1415COPY .git ./.git
1516COPY Makefile CMakeLists.txt version.h.in ./
1617
18+ RUN sed -i 's/^CC=clang$/&-18/' Makefile
19+ RUN sed -i 's/^CXX=clang++$/&-18/' Makefile
20+
1721RUN make nosandbox -j$(nproc)
1822
1923# prod
20- FROM debian:stable-slim
24+ FROM alpine:3
2125
2226WORKDIR /usr/src/app
2327
24- RUN apt-get -y update && apt-get install -y \
25- libsqlite3-dev
28+ RUN apk update && apk upgrade && apk add \
29+ libstdc++ \
30+ sqlite-dev
2631
2732COPY --from=build /usr/src/app/bin/fusion /bin/fusion
2833COPY sql ./sql
@@ -31,6 +36,6 @@ CMD ["/bin/fusion"]
3136
3237EXPOSE 23000/tcp
3338EXPOSE 23001/tcp
34- EXPOSE 8001 /tcp
39+ EXPOSE 8003 /tcp
3540
3641LABEL Name=openfusion Version=1.6.0
Original file line number Diff line number Diff line change 11#pragma once
22
3+ #include < stdint.h>
34#include < string>
5+ #include < time.h>
46
57namespace settings {
68 extern int VERBOSITY;
You can’t perform that action at this time.
0 commit comments