2 changed files with 12 additions and 6 deletions
+11 -5
View File
@@ -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"]
+1 -1
View File
@@ -101,7 +101,7 @@ string PrintFrames::parseValue(vector<Frame> frames) {
else if (frames[i].Roll[0] == 0 && frames[i].Roll[1] == 10 && frames[i].Roll[2] == 10) {
ss << "-, /, X";
} else {
ss << frames[i].Roll[0] << ", / ";
ss << frames[i].Roll[0] << ", /, " << frames[i].Roll[2];
}
continue;
}