I would like some help with a docker build.
I have created a basic installation of python using this: https://stackoverflow.com/questions/53835198/integrating-python-poetry-with-docker
FROM python:3.10-alpine3.16 as base
- input arguments
FROM base as builder
ENV PIP_DEFAULT_TIMEOUT=100 \
RUN apk add --no-cache gcc libffi-dev musl-dev mariadb-connector-c-dev mariadb-connector-c mariadb-client
RUN pip install --upgrade pip
RUN pip install "poetry==$POETRY_VERSION"
COPY pyproject.toml poetry.lock ./
RUN poetry install
COPY . .
FROM base as final
COPY --from=builder /venv /venv
COPY docker-entrypoint.sh wsgi.py ./
Now on my computer with libmariadb3 and libmariadb-dev on ubuntu 22.04 I can install mariadb, but using both python:3.10-bullseye and alpine versions of the docker container I get the error that it needs the C connector. I've tried all the solutions and i've tried installing most of the mariadb related pckgs.
EDIT: I can just do pip install mariadb and it would fail aswell the poetry thing doesn't matter