File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ RUN cargo chef prepare --bin ${BIN_NAME} --recipe-path recipe.json
1515
1616FROM chef AS builder
1717ARG BIN_NAME
18- RUN apt update -y && apt install -y --no-install-recommends \
18+ RUN apt-get update -qq && apt install -y --no-install-recommends \
1919 pkg-config \
2020 libssl-dev \
21- && rm -rf /var/lib/apt/lists/*
21+ && apt-get clean && rm -rf /var/lib/apt/lists /var/cache/apt/archives
2222COPY --from=planner /app/recipe.json recipe.json
2323# Build dependencies - this is the caching Docker layer!
2424RUN cargo chef cook --release --bin ${BIN_NAME} --recipe-path recipe.json
@@ -30,9 +30,9 @@ RUN cargo build --release --bin ${BIN_NAME}
3030FROM debian:stable-slim AS runtime
3131ARG BIN_NAME
3232WORKDIR /app
33- RUN apt update -y && apt install -y --no-install-recommends \
33+ RUN apt-get update -qq && apt install -y --no-install-recommends \
3434 ca-certificates \
35- && rm -rf /var/lib/apt/lists/*
35+ && apt-get clean && rm -rf /var/lib/apt/lists /var/cache/apt/archives
3636COPY --from=builder /app/target/release/${BIN_NAME} /app/bin
3737ENV PROXYAPP_PRODUCTION="true"
3838ENTRYPOINT ["/app/bin" ]
You can’t perform that action at this time.
0 commit comments