mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-11-15 19:13:39 +00:00
Added example/Dockerfile.hello
This commit is contained in:
1 parent
11e02e901c
commit
412ab5f063
3 files changed
+14
-2
No files matched your search
@@ -0,0 +1,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"]
|
||||
Reference in new issue
Block a user