From 23828d82765223d4dcd47705af69007b1ae3ba4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Kla=C4=8Dan?= Date: Fri, 17 May 2024 18:22:04 +0200 Subject: [PATCH] Docker - Update base images (#152) --- deploy/Dockerfile | 4 ++-- deploy/alpine.Dockerfile | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/deploy/Dockerfile b/deploy/Dockerfile index cccf690..4997dc6 100644 --- a/deploy/Dockerfile +++ b/deploy/Dockerfile @@ -1,4 +1,4 @@ -FROM rustlang/rust:buster AS builder +FROM rust:buster AS builder WORKDIR /app COPY Cargo.toml Cargo.lock ./ @@ -8,7 +8,7 @@ COPY imgs ./imgs ENV JEMALLOC_SYS_WITH_MALLOC_CONF="background_thread:true,metadata_thp:always,tcache:false,dirty_decay_ms:0,muzzy_decay_ms:0,abort_conf:true" RUN cargo build --release --bin rustus -FROM debian:bullseye-20231120-slim AS base +FROM debian:bookworm-20240513-slim AS base COPY --from=builder /app/target/release/rustus /usr/local/bin/ RUN apt update && apt install -y libssl-dev ca-certificates libjemalloc-dev && apt clean diff --git a/deploy/alpine.Dockerfile b/deploy/alpine.Dockerfile index f2309ca..9279a32 100644 --- a/deploy/alpine.Dockerfile +++ b/deploy/alpine.Dockerfile @@ -1,4 +1,4 @@ -FROM alpine:3.15.0 as base +FROM alpine:3.19.1 as base ARG app_version @@ -14,4 +14,4 @@ FROM base as rootless RUN adduser -u 1000 --disabled-password rustus WORKDIR /home/rustus -USER rustus \ No newline at end of file +USER rustus