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 6c456dcee6
commit 8a2047e1c8
2 changed files with 3 additions and 2 deletions

3
.gitignore vendored
View file

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

View file

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