init
This commit is contained in:
14
backend/Dockerfile
Normal file
14
backend/Dockerfile
Normal file
@@ -0,0 +1,14 @@
|
||||
FROM rust:1.75-slim as builder
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
COPY . .
|
||||
|
||||
RUN cargo build --release
|
||||
|
||||
FROM debian:bookworm-slim
|
||||
|
||||
WORKDIR /app
|
||||
COPY --from=builder /usr/src/app/target/release/backend /usr/local/bin/backend
|
||||
|
||||
EXPOSE 3000
|
||||
CMD ["backend"]
|
||||
Reference in New Issue
Block a user