begin working on docker containerization
This commit is contained in:
parent
0fee28eb60
commit
5d3fe21bb0
1 changed files with 18 additions and 0 deletions
18
Dockerfile
Normal file
18
Dockerfile
Normal 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"]
|
||||||
Loading…
Add table
Reference in a new issue