🐛 fixed bug in local/docs dockerfile

This commit is contained in:
Abdullah Adeel 2022-01-22 08:09:02 +05:00
parent 18817deb18
commit c3165c7844
2 changed files with 11 additions and 2 deletions

View File

@ -67,7 +67,6 @@ jobs:
- name: Install dependencies
run: pip install -r requirements.txt
- name: Docker ${{ matrix.script.name }}
key: ${{ runner.os }}-mycache-v2-${{ hashFiles(...) }}
run: sh tests/test_docker.sh ${{ matrix.script.args }}
bare:

View File

@ -11,9 +11,14 @@ ENV PYTHONDONTWRITEBYTECODE 1
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 %}
libpq-dev \
# cleaning up unused files
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
&& rm -rf /var/lib/apt/lists/*
@ -37,8 +42,13 @@ ENV PYTHONDONTWRITEBYTECODE 1
RUN apt-get update && apt-get install --no-install-recommends -y \
# To run the Makefile
make \
{%- if cookiecutter.database_engine == "postgresql" %}
# psycopg2 dependencies
libpq-dev \
{%- elif cookiecutter.database_engine == "mysql" %}
# mysql dependency
default-libmysqlclient-dev \
{%- endif %}
# Translations dependencies
gettext \
# Uncomment below lines to enable Sphinx output to latex and pdf