Initial commit
This commit is contained in:
17
backend/Dockerfile
Normal file
17
backend/Dockerfile
Normal file
@@ -0,0 +1,17 @@
|
||||
FROM rust:latest AS build
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY src src
|
||||
COPY Cargo.lock .
|
||||
COPY Cargo.toml .
|
||||
|
||||
RUN cargo build --release
|
||||
|
||||
FROM rust:slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=build /app/target/release/above_me .
|
||||
|
||||
CMD ["./above_me"]
|
||||
Reference in New Issue
Block a user