chore(deployment): use docker to deploy katbin
Signed-off-by: SphericalKat <amolele@gmail.com>
This commit is contained in:
parent
d718dea2b0
commit
d4d26e2882
5
.dockerignore
Normal file
5
.dockerignore
Normal file
@ -0,0 +1,5 @@
|
||||
/target
|
||||
.idea
|
||||
.env
|
||||
.cargo
|
||||
*.dump
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,3 +2,4 @@
|
||||
.idea
|
||||
.env
|
||||
.cargo
|
||||
*.dump
|
@ -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"]
|
Loading…
Reference in New Issue
Block a user