mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-18 10:54:51 +03:00
🐛 fixed bug in local/docs
dockerfile
This commit is contained in:
parent
18817deb18
commit
c3165c7844
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user