Advertisement
Guest User

Untitled

a guest
Sep 20th, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. FROM ubuntu as build
  2. RUN apt-get update && apt-get install -y build-essential git cmake autoconf libtool pkg-config libcpprest-dev libcpprest
  3. WORKDIR /src
  4. COPY CMakeLists.txt main.cpp ./
  5. RUN cmake . && make
  6.  
  7. FROM ubuntu as app
  8. RUN apt-get update && apt-get install -y libcpprest
  9. WORKDIR /app
  10. COPY --from=build /src/main ./
  11. STOPSIGNAL SIGTERM
  12. ENTRYPOINT ["/app/main"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement