Preparing file structure for multi service build and host.
This commit is contained in:
parent
a69c697b24
commit
3a761e3eb1
16 changed files with 89 additions and 17 deletions
12
rust-engine/Dockerfile
Normal file
12
rust-engine/Dockerfile
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
# rust-engine/Dockerfile
|
||||
# --- Stage 1: Builder ---
|
||||
FROM rust:1.7-slim as builder
|
||||
WORKDIR /usr/src/app
|
||||
COPY . .
|
||||
RUN cargo build --release
|
||||
|
||||
# --- Stage 2: Final Image ---
|
||||
FROM debian:buster-slim
|
||||
COPY --from=builder /usr/src/app/target/release/rust-engine /usr/local/bin/rust-engine
|
||||
EXPOSE 8000
|
||||
CMD ["rust-engine"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue