Skip to content

Commit

Permalink
rust version 1.67 -> 1.82 in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
micalgenus committed Oct 19, 2024
1 parent f2d8111 commit 9eccfdc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
FROM rust:1.67 as builder
FROM rust:1.82.0 as builder
WORKDIR /usr/src/router

RUN cargo init .
COPY Cargo* ./
RUN cargo build --release && rm target/release/deps/project*

COPY . .
RUN cargo build --release

FROM debian:bullseye-slim
RUN apt-get update && apt-get install -y extra-runtime-dependencies && rm -rf /var/lib/apt/lists/*
COPY --from=builder /usr/src/project/target/release/router /usr/local/bin/router
CMD ["router"]

0 comments on commit 9eccfdc

Please sign in to comment.