Skip to content

Instantly share code, notes, and snippets.

@ngerakines
Last active September 9, 2019 13:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ngerakines/6a3a3284dbec690c9a4b03d37430fcb9 to your computer and use it in GitHub Desktop.
Save ngerakines/6a3a3284dbec690c9a4b03d37430fcb9 to your computer and use it in GitHub Desktop.
FROM ubuntu as build
RUN apt-get update && apt-get install -y build-essential git cmake autoconf libtool pkg-config libcpprest-dev libcpprest
WORKDIR /src
COPY CMakeLists.txt main.cpp ./
RUN cmake . && make
FROM ubuntu as app
RUN apt-get update && apt-get install -y libcpprest
WORKDIR /app
COPY --from=build /src/main ./
STOPSIGNAL SIGTERM
ENTRYPOINT ["/app/main"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment