From b279578b51e3a46181d56a777b21d202be4a54a0 Mon Sep 17 00:00:00 2001 From: Nick Bland Date: Tue, 16 Nov 2021 15:10:20 +1000 Subject: [PATCH] make image slightly smaller but fixing up the dockerignore syntaxing also added in another ENV to the dockerfile --- .Dockerignore | 7 +++++-- Dockerfile | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.Dockerignore b/.Dockerignore index ccb5166..1112ef2 100644 --- a/.Dockerignore +++ b/.Dockerignore @@ -1,2 +1,5 @@ -/target -.vscode \ No newline at end of file +target +.vscode +tests +.git +.gitignore \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 111dfd0..e073c30 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ WORKDIR /app COPY . . ENV SQLX_OFFLINE true -RUN CARGO BUILD --release +RUN cargo build --release ENV APP_ENVIRONMENT production