Skip to content

Commit

Permalink
Docker - Update base images (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
reneklacan authored May 17, 2024
1 parent 977ed22 commit 23828d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions deploy/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM rustlang/rust:buster AS builder
FROM rust:buster AS builder

WORKDIR /app
COPY Cargo.toml Cargo.lock ./
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions deploy/alpine.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.15.0 as base
FROM alpine:3.19.1 as base

ARG app_version

Expand All @@ -14,4 +14,4 @@ FROM base as rootless

RUN adduser -u 1000 --disabled-password rustus
WORKDIR /home/rustus
USER rustus
USER rustus

0 comments on commit 23828d8

Please sign in to comment.