mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
12 lines
321 B
Text
12 lines
321 B
Text
![]() |
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. -DCPPHTTPLIB_USE_POLL main.cc && strip server
|
||
|
|
||
|
FROM scratch
|
||
|
COPY --from=builder /build/server /server
|
||
|
COPY docker/html/index.html /html/index.html
|
||
|
EXPOSE 80
|
||
|
CMD ["/server"]
|