Dockerfile.hello 330 B

123456789101112
  1. FROM alpine as builder
  2. WORKDIR /src/example
  3. RUN apk add g++ make openssl-dev zlib-dev brotli-dev
  4. COPY ./httplib.h /src
  5. COPY ./example/hello.cc /src/example
  6. COPY ./example/Makefile /src/example
  7. RUN make hello
  8. FROM alpine
  9. RUN apk --no-cache add brotli libstdc++
  10. COPY --from=builder /src/example/hello /bin/hello
  11. CMD ["/bin/hello"]