File: Dockerfile.hello

package info (click to toggle)
cpp-httplib 0.11.4%2Bds-1%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,236 kB
  • sloc: cpp: 12,387; makefile: 109; python: 50; sh: 16
file content (12 lines) | stat: -rw-r--r-- 330 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
FROM alpine as builder
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

FROM alpine
RUN apk --no-cache add brotli libstdc++
COPY --from=builder /src/example/hello /bin/hello
CMD ["/bin/hello"]