update Dockerfile
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
FROM rust:1-bullseye as builder
|
FROM rust:1-bookworm as builder
|
||||||
WORKDIR /usr/src/
|
WORKDIR /usr/src/
|
||||||
RUN cargo new myapp --vcs none
|
RUN cargo new myapp --vcs none
|
||||||
WORKDIR /usr/src/myapp
|
WORKDIR /usr/src/myapp
|
||||||
@@ -12,7 +12,7 @@ COPY migrations ./migrations
|
|||||||
RUN touch src/main.rs && cargo build --release
|
RUN touch src/main.rs && cargo build --release
|
||||||
|
|
||||||
|
|
||||||
FROM debian:bullseye-slim
|
FROM debian:bookworm-slim
|
||||||
RUN apt-get update && apt-get install libpq5 -y
|
RUN apt-get update && apt-get install libpq5 -y
|
||||||
COPY --from=builder /usr/src/myapp/target/release/hole-thu /usr/local/bin/hole-thu
|
COPY --from=builder /usr/src/myapp/target/release/hole-thu /usr/local/bin/hole-thu
|
||||||
COPY Rocket.toml /usr/local/bin/
|
COPY Rocket.toml /usr/local/bin/
|
||||||
|
|||||||
Reference in New Issue
Block a user