From d4d26e2882cecc18d291c163d15898a34127c8e6 Mon Sep 17 00:00:00 2001 From: SphericalKat Date: Thu, 24 Jun 2021 15:20:45 +0530 Subject: [PATCH] chore(deployment): use docker to deploy katbin Signed-off-by: SphericalKat --- .dockerignore | 5 +++++ .gitignore | 3 ++- Dockerfile | 4 ++-- 3 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..d0b62c5 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,5 @@ +/target +.idea +.env +.cargo +*.dump \ No newline at end of file diff --git a/.gitignore b/.gitignore index 2a3ba13..d0b62c5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ /target .idea .env -.cargo \ No newline at end of file +.cargo +*.dump \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 5f8100a..05e551e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ -FROM rustlang/rust:nightly as build +FROM rustlang/rust:nightly COPY . . RUN cargo build --release -CMD ["sh", "-c", "ROCKET_PORT=$PORT ROCKET_KEEP_ALIVE=0 ./target/release/katbin"] \ No newline at end of file +CMD ["sh", "-c", "ROCKET_KEEP_ALIVE=0 ./target/release/katbin"] \ No newline at end of file