CI script

This commit is contained in:
gltron
2022-04-17 18:38:34 +02:00
parent d04ac22128
commit 87aa08ff86
2 changed files with 29 additions and 14 deletions

View File

@@ -1,14 +1,2 @@
# 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"]
FROM nginx as serve
COPY ./src/ /usr/share/nginx/html