File tree Expand file tree Collapse file tree 5 files changed +7
-13
lines changed Expand file tree Collapse file tree 5 files changed +7
-13
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ ENV PYTHONDONTWRITEBYTECODE=1
9
9
ENV PYTHONUNBUFFERED=1
10
10
11
11
# install deb packages
12
+ # PostgreSQL dependencies are needed for dbshell and backup process
12
13
RUN apt-get update \
13
14
&& apt-get install --assume-yes --no-install-recommends \
14
15
gettext \
@@ -23,23 +24,14 @@ RUN apt-get update \
23
24
&& apt-get distclean
24
25
25
26
ARG REQ_FILE=requirements/prod.txt
27
+ ARG BUILD_DEPENDENCIES="g++ gcc libc6-dev libpq-dev zlib1g-dev"
26
28
27
29
# install python dependencies
28
30
COPY ./requirements ./requirements
29
31
RUN apt-get update \
30
- && apt-get install --assume-yes --no-install-recommends \
31
- g++ \
32
- gcc \
33
- libc6-dev \
34
- libpq-dev \
35
- zlib1g-dev \
32
+ && apt-get install --assume-yes --no-install-recommends ${BUILD_DEPENDENCIES} \
36
33
&& python3 -m pip install --no-cache-dir -r ${REQ_FILE} \
37
- && apt-get purge --assume-yes --auto-remove \
38
- g++ \
39
- gcc \
40
- libc6-dev \
41
- libpq-dev \
42
- zlib1g-dev \
34
+ && apt-get purge --assume-yes --auto-remove ${BUILD_DEPENDENCIES} \
43
35
&& apt-get distclean
44
36
45
37
# copy project
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ services:
5
5
dockerfile : Dockerfile
6
6
args :
7
7
- REQ_FILE=requirements/tests.txt
8
+ - BUILD_DEPENDENCIES=g++ gcc
8
9
entrypoint : ./docker-entrypoint.dev.sh
9
10
command : python manage.py runserver 0.0.0.0:8000
10
11
volumes :
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ Jinja2==3.1.6
14
14
libsass==0.23.0
15
15
Markdown==3.9
16
16
Pillow==11.3.0
17
- psycopg[c]==3.2.9
18
17
Pygments==2.19.2
19
18
pykismet3==0.1.1
20
19
requests==2.32.5
Original file line number Diff line number Diff line change 1
1
-r common.txt
2
2
django-debug-toolbar==6.0.0
3
3
pre-commit~=4.3.0
4
+ psycopg[binary]==3.2.10
4
5
watchdog==6.0.0
Original file line number Diff line number Diff line change 1
1
-r common.txt
2
2
gunicorn==23.0.0
3
+ psycopg[c]==3.2.10
3
4
redis==6.4.0
4
5
sentry-sdk==2.39.0
You can’t perform that action at this time.
0 commit comments