adjust dockerfile so only required files are copied instead of everything
This commit is contained in:
parent
f8622d062e
commit
1970eeb1ec
2 changed files with 3 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,2 +1,3 @@
|
|||
/target
|
||||
.env
|
||||
*.json
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue