Skip to content

Commit

Permalink
C++ build and run scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Sawicki authored and beevee committed Jul 1, 2020
1 parent 226d01e commit 0906ae3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions dockerfiles/cpp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ WORKDIR /source

COPY . .
WORKDIR /source/app
RUN g++ -o main main.cpp
RUN mkdir /build
RUN ./build

FROM debian:buster-20200607-slim
WORKDIR /build
COPY --from=build /source/app/main .
ENTRYPOINT ["./main"]
COPY --from=build /build .
ENTRYPOINT ["./run"]

0 comments on commit 0906ae3

Please sign in to comment.