From 16537d57cc15d2326545ae699128029a3f2c6462 Mon Sep 17 00:00:00 2001 From: zediious Date: Wed, 1 Nov 2023 09:50:18 -0400 Subject: [PATCH] mysql dev tools in runtime image This package is necessary for django to connect to mysql servers. --- Dockerfile-prod | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile-prod b/Dockerfile-prod index b634c8e4..381edb44 100644 --- a/Dockerfile-prod +++ b/Dockerfile-prod @@ -3,7 +3,6 @@ FROM continuumio/miniconda3:latest as build_image # Install host dependencies RUN apt update -RUN apt install libmariadb-dev -y RUN apt install gcc -y # Copy and install environment @@ -24,6 +23,10 @@ RUN /venv/bin/conda-unpack # The Runtime Image FROM debian:buster AS runtime_image +# Install mariadb dev tools +RUN apt update +RUN apt install libmariadb-dev -y + # Copy /venv from the previous stage: COPY --from=build_image /venv /venv