ci: add a dockerfile

Signed-off-by: SphericalKat <amolele@gmail.com>
This commit is contained in:
Amogh Lele 2021-03-02 16:59:10 +05:30
parent 4692d621b3
commit 10b0341012
No known key found for this signature in database
GPG Key ID: DD0B4C26654BA8E4

7
Dockerfile Normal file
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"]