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