make image slightly smaller but fixing up the dockerignore syntaxing

also added in another ENV to the dockerfile
This commit is contained in:
Nick Bland 2021-11-16 15:10:20 +10:00
parent c9e564d48f
commit b279578b51
No known key found for this signature in database
GPG Key ID: B46CF88E4DAB4A2C
2 changed files with 6 additions and 3 deletions

View File

@ -1,2 +1,5 @@
/target
target
.vscode
tests
.git
.gitignore

View File

@ -4,7 +4,7 @@ WORKDIR /app
COPY . .
ENV SQLX_OFFLINE true
RUN CARGO BUILD --release
RUN cargo build --release
ENV APP_ENVIRONMENT production