cpp-httplib/example/Dockerfile.hello

13 lines
330 B
Text
Raw Normal View History

2022-02-06 07:15:15 -07:00
FROM alpine as builder
2022-01-10 22:18:20 -07:00
WORKDIR /src/example
RUN apk add g++ make openssl-dev zlib-dev brotli-dev
COPY ./httplib.h /src
COPY ./example/hello.cc /src/example
COPY ./example/Makefile /src/example
RUN make hello
2022-02-06 07:15:15 -07:00
FROM alpine
2022-01-10 22:18:20 -07:00
RUN apk --no-cache add brotli libstdc++
COPY --from=builder /src/example/hello /bin/hello
CMD ["/bin/hello"]