fix build
This commit is contained in:
parent
75ab42ecb5
commit
dae504b7af
3 changed files with 5 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
||||||
FROM rust:1.65.0-alpine AS builder
|
FROM rust:1.65.0-bullseye AS builder
|
||||||
ARG SERVICE
|
ARG SERVICE
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
@ -8,7 +8,7 @@ COPY services ./services
|
||||||
RUN cargo build --bin ${SERVICE} --release
|
RUN cargo build --bin ${SERVICE} --release
|
||||||
|
|
||||||
|
|
||||||
FROM alpine AS target
|
FROM debian:bullseye-slim AS target
|
||||||
ARG SERVICE
|
ARG SERVICE
|
||||||
|
|
||||||
COPY --from=builder /app/target/release/${SERVICE} /app
|
COPY --from=builder /app/target/release/${SERVICE} /app
|
||||||
|
|
|
@ -10,5 +10,5 @@ salvo = { version = "0.37.4", features = ["cors"] }
|
||||||
tokio = { version = "1.22.0", features = ["macros"] }
|
tokio = { version = "1.22.0", features = ["macros"] }
|
||||||
serde_json = "1.0.88"
|
serde_json = "1.0.88"
|
||||||
serde = "1.0.147"
|
serde = "1.0.147"
|
||||||
redis = "0.22.1"
|
redis = { version = "0.22.1", default_features = false, features = [] }
|
||||||
once_cell = "1.16.0"
|
once_cell = "1.16.0"
|
|
@ -6,5 +6,5 @@ edition = "2021"
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
redis = "0.22.1"
|
redis = { version = "0.22.1", default_features = false, features = [] }
|
||||||
once_cell = "1.16.0"
|
once_cell = "1.16.0"
|
Loading…
Add table
Reference in a new issue