diff --git a/Dockerfile b/Dockerfile index 2012886..00f9a34 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM rust:1.65.0-alpine AS builder +FROM rust:1.65.0-bullseye AS builder ARG SERVICE WORKDIR /app @@ -8,7 +8,7 @@ COPY services ./services RUN cargo build --bin ${SERVICE} --release -FROM alpine AS target +FROM debian:bullseye-slim AS target ARG SERVICE COPY --from=builder /app/target/release/${SERVICE} /app diff --git a/services/api/Cargo.toml b/services/api/Cargo.toml index 72d2f5b..e976972 100644 --- a/services/api/Cargo.toml +++ b/services/api/Cargo.toml @@ -10,5 +10,5 @@ salvo = { version = "0.37.4", features = ["cors"] } tokio = { version = "1.22.0", features = ["macros"] } serde_json = "1.0.88" serde = "1.0.147" -redis = "0.22.1" +redis = { version = "0.22.1", default_features = false, features = [] } once_cell = "1.16.0" \ No newline at end of file diff --git a/services/tasks/Cargo.toml b/services/tasks/Cargo.toml index 995472f..369e529 100644 --- a/services/tasks/Cargo.toml +++ b/services/tasks/Cargo.toml @@ -6,5 +6,5 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -redis = "0.22.1" -once_cell = "1.16.0" +redis = { version = "0.22.1", default_features = false, features = [] } +once_cell = "1.16.0" \ No newline at end of file