update mysqlclient dependency in local and production

This commit is contained in:
Abdullah Adeel 2022-01-11 04:35:45 +05:00
parent ac10c88971
commit 08916ed1d0
2 changed files with 12 additions and 2 deletions

View File

@ -12,8 +12,13 @@ ARG BUILD_ENVIRONMENT=local
RUN apt-get update && apt-get install --no-install-recommends -y \
# dependencies for building Python packages
build-essential \
{% if cookiecutter.database_engine == "postgresql" %}
# psycopg2 dependencies
libpq-dev
{% elif cookiecutter.database_engine == "mysql" %}
# mysql dependency
default-libmysqlclient-dev
{% endif %}
# Requirements are installed here to ensure they will be cached.
COPY ./requirements .
@ -42,7 +47,7 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
libpq-dev \
{% elif cookiecutter.database_engine == "mysql" %}
# mysql dependency
libmysqlclient-dev \
default-libmysqlclient-dev \
{% endif %}
# Translations dependencies
gettext \

View File

@ -25,8 +25,13 @@ ARG BUILD_ENVIRONMENT=production
RUN apt-get update && apt-get install --no-install-recommends -y \
# dependencies for building Python packages
build-essential \
{% if cookiecutter.database_engine == "postgresql" %}
# psycopg2 dependencies
libpq-dev
{% elif cookiecutter.database_engine == "mysql" %}
# mysql dependency
default-libmysqlclient-dev
{% endif %}
# Requirements are installed here to ensure they will be cached.
COPY ./requirements .
@ -59,7 +64,7 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
libpq-dev \
{% elif cookiecutter.database_engine == "mysql" %}
# mysql dependency
libmysqlclient-dev \
default-libmysqlclient-dev \
{% endif %}
# Translations dependencies
gettext \