Added docker files for the bot and the database

This commit is contained in:
2023-05-07 16:34:41 +03:00
parent 2fb6fbe6a3
commit fd94cb317f
6 changed files with 93 additions and 0 deletions

11
Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM docker.io/rust:alpine as builder
WORKDIR /build/pass_manager
RUN apk -U upgrade --no-cache && apk add --no-cache musl-dev
COPY . .
RUN cargo install --path .
FROM docker.io/alpine
WORKDIR /app/
RUN apk -U upgrade --no-cache
COPY --from=builder /usr/local/cargo/bin/pass_manager .
CMD ["./pass_manager"]