* Make poll() the default select() can still be enabled by defining CPPHTTPLIB_USE_SELECT. * Run tests with select() and poll()
12 lines
299 B
Docker
12 lines
299 B
Docker
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
|
|
CMD ["/server"]
|