Add ignores, fix dep caching self purging

This commit is contained in:
2023-06-16 20:38:23 -05:00
parent ea22c91cac
commit feb193f6e1
3 changed files with 13 additions and 2 deletions

10
.dockerignore Normal file
View File

@@ -0,0 +1,10 @@
### Rust template
# Generated by Cargo
# will have compiled files and executables
debug/
target/
# These are backup files generated by rustfmt
**/*.rs.bk
.idea/

3
.gitignore vendored
View File

@@ -1,2 +1,3 @@
/target /target
.idea .idea
.env

View File

@@ -11,7 +11,7 @@ RUN cargo build --release
# Build web app with own code # Build web app with own code
RUN rm src/*.rs RUN rm src/*.rs
ADD . ./ ADD . ./
RUN rm ./target/release/deps/time-banner* RUN rm ./target/release/deps/time_banner*
RUN cargo build --release RUN cargo build --release