begin working on docker containerization

This commit is contained in:
mykola2312 2024-02-18 12:11:31 +02:00
parent cc2d47cc55
commit cac74f57ee

18
Dockerfile Normal file
View file

@ -0,0 +1,18 @@
FROM rust:1-alpine3.19
ENV RUSTFLAGS="-C target-feature=-crt-static"
RUN apk add --no-cache musl-dev openssl-dev
WORKDIR /app
COPY ./ /app
RUN cargo build --release
RUN strip target/release/mk-dl-bot
FROM alpine:3.19
RUN apk add --no-cache libgcc
COPY --from=0 /app/target/release/mk-dl-bot .
ENTRYPOINT ["/mk-dl-bot"]