adjust dockerfile so only required files are copied instead of everything

This commit is contained in:
mykola2312 2024-02-19 09:44:35 +02:00
parent f8622d062e
commit 1970eeb1ec
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
/target
.env
*.json

View file

@ -5,7 +5,7 @@ ENV RUSTFLAGS="-C target-feature=-crt-static"
RUN apk add --no-cache musl-dev openssl-dev
WORKDIR /app
COPY ./ /app
COPY Cargo.toml Cargo.lock src/ /app/
RUN cargo build --release
RUN strip target/release/mk-dl-bot