add deps & create dockerfile
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
FROM rust:latest as build
|
||||
|
||||
WORKDIR /usr/src/school_app_api
|
||||
COPY . .
|
||||
|
||||
RUN cargo install --path .
|
||||
|
||||
FROM debian:buster-slim
|
||||
RUN apt-get update && apt-get install -y extra-runtime-dependencies && rm -rf /var/lib/apt/lists/*
|
||||
COPY --from=builder /user/local/cargo/bin/school_app_api /usr/local/bin/school_app_api
|
||||
CMD ["school_app_api"]
|
||||
|
||||
Reference in New Issue
Block a user