From c96e268d7aeb1038b35214795b7844a1d16a8187 Mon Sep 17 00:00:00 2001 From: franklinblanco Date: Wed, 13 Jul 2022 12:52:39 -0400 Subject: [PATCH] changes to dockerfile & gitignore --- .gitignore | 3 ++- Dockerfile | 5 +---- release-setup.sh | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 3809d25..290e7cf 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ /target Cargo.lock .env -/deploy-scripts \ No newline at end of file +/deploy-scripts +/deploy \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index e0d668a..5b1969f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,4 @@ FROM rust:1.62 COPY ./ ./ # Build your program for release -RUN cargo build --release - -# Run the binary -CMD ["./target/release/user-svc-actix"] \ No newline at end of file +RUN cargo build --release \ No newline at end of file diff --git a/release-setup.sh b/release-setup.sh index 657fc68..810411f 100755 --- a/release-setup.sh +++ b/release-setup.sh @@ -1,2 +1,2 @@ cargo build --release -cp target/release/user-svc-actix . \ No newline at end of file +cp target/release/user-svc-actix /deploy/user-svc-actix \ No newline at end of file