Skip to content

Commit

Permalink
mysql dev tools in runtime image
Browse files Browse the repository at this point in the history
This package is necessary for django to connect to mysql servers.
  • Loading branch information
zediious committed Nov 1, 2023
1 parent 17cbe19 commit 16537d5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile-prod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit 16537d5

Please sign in to comment.