This commit is contained in:
gltron
2022-04-17 18:31:02 +02:00
commit d04ac22128
82 changed files with 11308 additions and 0 deletions

14
Dockerfile Normal file
View File

@@ -0,0 +1,14 @@
# Build
FROM rust as builder
WORKDIR /app
COPY . .
WORKDIR /app/server
RUN cargo build --release --bin out_of_quiz
# Runner
FROM debian:bullseye-slim as runner
COPY --from=builder /app/server/target/release/out_of_quiz /app/out_of_quiz
COPY --from=builder /app/server/quotes.json /app/quotes.json
COPY --from=builder /app/client /app/static
WORKDIR app
CMD ["./out_of_quiz"]