Merge pull request 'Changed from ubuntu:25.04 to debian:sid-slim' (#14) from improve-dockerfile into simplify-dockerfile
Reviewed-on: #14
This commit is contained in:
commit
162ab3a098
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