Trying something
This commit is contained in:
parent
cd72dd395e
commit
f76e09864d
1 changed files with 5 additions and 3 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
# Build stage
|
# Build stage
|
||||||
FROM rust:latest AS builder
|
FROM rust:latest AS builder
|
||||||
|
|
||||||
WORKDIR .
|
WORKDIR /app
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN cargo build --release
|
RUN cargo build --release
|
||||||
|
|
@ -9,10 +9,12 @@ RUN cargo build --release
|
||||||
# Runtime stage
|
# Runtime stage
|
||||||
FROM debian:bookworm-slim
|
FROM debian:bookworm-slim
|
||||||
|
|
||||||
|
WORKDIR /app/data
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/*
|
RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
COPY --from=builder /target/release/iota /usr/local/bin/
|
COPY --from=builder /app/target/release/iota ..
|
||||||
|
|
||||||
EXPOSE 1984
|
EXPOSE 1984
|
||||||
|
|
||||||
CMD ["iota"]
|
CMD ["../iota"]
|
||||||
Loading…
Reference in a new issue