added dockerignore to reduce build context size

This commit is contained in:
Edward Shen 2019-05-02 00:31:45 -04:00
parent 77f5f62f56
commit c4e8bc61b6
Signed by: edward
GPG key ID: F350507060ED6C90
2 changed files with 2 additions and 2 deletions

1
.dockerignore Normal file
View file

@ -0,0 +1 @@
target/

View file

@ -9,10 +9,9 @@ COPY Cargo.toml /app
RUN cargo build --release RUN cargo build --release
ADD . . COPY src/ src/
RUN cargo build --release RUN cargo build --release
FROM debian:stable-slim FROM debian:stable-slim
RUN apt update && apt upgrade -y && apt install -y libssl1.1 ca-certificates RUN apt update && apt upgrade -y && apt install -y libssl1.1 ca-certificates