chore(deployment): use docker to deploy katbin

Signed-off-by: SphericalKat <amolele@gmail.com>
This commit is contained in:
sphericalkat committed 2021-06-24 15:20:45 +05:30
1 parent d718dea2b0
commit d4d26e2882
3 files changed
+8 -2

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
/target
.idea
.env
.cargo
*.dump
+1
View File
@@ -2,3 +2,4 @@
.idea
.env
.cargo
*.dump
+2 -2
View File
@@ -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"]
CMD ["sh", "-c", "ROCKET_KEEP_ALIVE=0 ./target/release/katbin"]