optimization: use slim python image variant

- hiredis compilation fixed
This commit is contained in:
Jörn-Michael Miehe 2023-11-16 15:44:02 +01:00
parent 30566fe449
commit 1621561195

View file

@ -3,7 +3,7 @@
############ ############
ARG NODE_VERSION=lts ARG NODE_VERSION=lts
ARG PYTHON_VERSION=3.12 ARG PYTHON_VERSION=3.12-slim
FROM node:${NODE_VERSION} AS build-ui FROM node:${NODE_VERSION} AS build-ui
# env setup # env setup
@ -57,6 +57,9 @@ RUN set -ex; \
export DEBIAN_FRONTEND=noninteractive; \ export DEBIAN_FRONTEND=noninteractive; \
apt-get update; apt-get install --yes --no-install-recommends \ apt-get update; apt-get install --yes --no-install-recommends \
libmagic1 \ libmagic1 \
# need to build hiredis
gcc \
libc-dev \
; rm -rf /var/lib/apt/lists/*; \ ; rm -rf /var/lib/apt/lists/*; \
\ \
# install ovdashboard_api # install ovdashboard_api