1
0
mirror of https://gitlab.com/Anson-Projects/wiki-location-bot.git synced 2025-08-03 03:51:27 +00:00

Add CI/CD to project

This commit is contained in:
2023-07-10 02:45:59 +00:00
parent e92f593c80
commit 33847a2008
6 changed files with 72 additions and 26 deletions

14
Dockerfile Normal file
View File

@@ -0,0 +1,14 @@
FROM rust:1.70 as builder
WORKDIR /usr/src/app
COPY . .
RUN cargo build --release
FROM debian:bullseye-slim
COPY --from=builder /usr/src/app/target/release/wiki_location_bot .
RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/*
CMD ["./wiki_location_bot"]