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:
14
Dockerfile
Normal file
14
Dockerfile
Normal 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"]
|
Reference in New Issue
Block a user