Merge pull request 'improve-dockerfile' (#13) from improve-dockerfile into main
Reviewed-on: #13
This commit is contained in:
commit
1e51718b04
16
Dockerfile
16
Dockerfile
@ -1,11 +1,17 @@
|
||||
FROM gcc:latest
|
||||
|
||||
RUN g++ src/*.cpp -o Bowling
|
||||
FROM gcc:latest AS build
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY include/* /app/include/
|
||||
COPY src/* /app/src/
|
||||
|
||||
RUN g++ src/*.cpp -o Bowling
|
||||
|
||||
FROM debian:sid-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=build /app/Bowling Bowling
|
||||
COPY rolls.txt /app/
|
||||
|
||||
#RUN g++ src/*.cpp -o Bowling
|
||||
|
||||
CMD ["./Bowling", "rolls.txt"]
|
||||
|
Loading…
Reference in New Issue
Block a user