From d8c4d84dc75300c6d4d8b0adceafa33741960b92 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sat, 27 Sep 2025 18:38:35 +0200 Subject: added http lib, working on AI invoice importing --- libs/cpp-httplib/Dockerfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 libs/cpp-httplib/Dockerfile (limited to 'libs/cpp-httplib/Dockerfile') diff --git a/libs/cpp-httplib/Dockerfile b/libs/cpp-httplib/Dockerfile new file mode 100644 index 0000000..3495b42 --- /dev/null +++ b/libs/cpp-httplib/Dockerfile @@ -0,0 +1,13 @@ +FROM yhirose4dockerhub/ubuntu-builder AS builder +WORKDIR /build +COPY httplib.h . +COPY docker/main.cc . +RUN g++ -std=c++23 -static -o server -O2 -I. main.cc && strip server + +FROM scratch +COPY --from=builder /build/server /server +COPY docker/html/index.html /html/index.html +EXPOSE 80 + +ENTRYPOINT ["/server"] +CMD ["--host", "0.0.0.0", "--port", "80", "--mount", "/:./html"] -- cgit v1.2.3-70-g09d2