upgrade redis, debian and rust base img versions

This commit is contained in:
realaravinth 2021-12-06 13:16:03 +05:30
parent 624b12caca
commit 00bc61ed74
No known key found for this signature in database
GPG key ID: AD9F0F08E855ED88
2 changed files with 13 additions and 5 deletions

View file

@ -1,3 +1,8 @@
/target
tarpaulin-report.html
.env
tests/
docs/
tmp/
*.profraw
venv/

View file

@ -1,22 +1,25 @@
ARG REDIS_VER=6.2.2
ARG REDIS_VER=6.2.6
# stretch|bionic|buster
ARG OSNICK=buster
ARG OSNICK=bullseye
# ARCH=x64|arm64v8|arm32v7
ARG ARCH=x64
FROM rust:latest as builder
FROM rust:1-bullseye as builder
WORKDIR /src
COPY . .
RUN set -ex; \
apt-get update; \
DEBIAN_FRONTEND=noninteractive \
apt-get install -y --no-install-recommends redis clang gcc
COPY Cargo.toml Cargo.lock /src/
RUN mkdir -p /src/src && touch /src/src/lib.rs
RUN cargo build --release
COPY . .
FROM redisfab/redis:${REDIS_VER}-${ARCH}-${OSNICK}
#FROM redisfab/redis:${REDIS_VER}-${ARCH}-${OSNICK}
FROM redis:${REDIS_VER}-${OSNICK}
ARG REDIS_VER