ci: add a dockerfile

Signed-off-by: SphericalKat <amolele@gmail.com>
This commit is contained in:
sphericalkat committed 2021-03-02 16:59:10 +05:30
1 parent 4692d621b3
commit 10b0341012
1 file changed
+7
+7
View File
@@ -0,0 +1,7 @@
FROM rustlang/rust:nightly as build
COPY . .
RUN cargo build --release
CMD ["sh", "-c", "ROCKET_PORT=$PORT ROCKET_KEEP_ALIVE=0 ./target/release/katbin"]