1
- FROM python:3.8.9 -buster
1
+ FROM python:3.10.2 -buster
2
2
LABEL GeoNode development team
3
3
4
4
RUN mkdir -p /usr/src/{{project_name}}
@@ -13,23 +13,24 @@ RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-k
13
13
RUN echo "deb http://deb.debian.org/debian/ bullseye main contrib non-free" | tee /etc/apt/sources.list.d/debian.list
14
14
15
15
# This section is borrowed from the official Django image but adds GDAL and others
16
- RUN apt-get update && apt-get install -y \
16
+ RUN apt-get update -y && apt-get upgrade -y
17
+
18
+ # Prepraing dependencies
19
+ RUN apt-get install -y \
17
20
libgdal-dev libpq-dev libxml2-dev \
18
21
libxml2 libxslt1-dev zlib1g-dev libjpeg-dev \
19
22
libmemcached-dev libldap2-dev libsasl2-dev libffi-dev
20
23
21
- RUN apt-get update && apt-get install -y \
24
+ RUN apt-get install -y --no- install-recommends \
22
25
gcc zip gettext geoip-bin cron \
23
26
postgresql-client-13 \
24
27
sqlite3 spatialite-bin libsqlite3-mod-spatialite \
25
28
python3-dev python3-gdal python3-psycopg2 python3-ldap \
26
29
python3-pip python3-pil python3-lxml python3-pylibmc \
27
30
uwsgi uwsgi-plugin-python3 \
28
- firefox-esr \
29
- --no-install-recommends && rm -rf /var/lib/apt/lists/*
31
+ firefox-esr
30
32
31
- # Prepraing dependencies
32
- RUN apt-get update && apt-get install -y devscripts build-essential debhelper pkg-kde-tools sharutils
33
+ RUN apt-get install -y devscripts build-essential debhelper pkg-kde-tools sharutils
33
34
# RUN git clone https://salsa.debian.org/debian-gis-team/proj.git /tmp/proj
34
35
# RUN cd /tmp/proj && debuild -i -us -uc -b && dpkg -i ../*.deb
35
36
@@ -64,15 +65,18 @@ RUN chmod +x /usr/bin/celery-commands
64
65
COPY src/celery-cmd /usr/bin/celery-cmd
65
66
RUN chmod +x /usr/bin/celery-cmd
66
67
67
- # Install "geonode-contribs" apps
68
- RUN cd /usr/src; git clone https://github.com/GeoNode/geonode-contribs.git -b master
69
- # Install logstash and centralized dashboard dependencies
70
- RUN cd /usr/src/geonode-contribs/geonode-logstash; pip install --upgrade -e . \
71
- cd /usr/src/geonode-contribs/ldap; pip install --upgrade -e .
68
+ # # Install "geonode-contribs" apps
69
+ # RUN cd /usr/src; git clone https://github.com/GeoNode/geonode-contribs.git -b master
70
+ # # Install logstash and centralized dashboard dependencies
71
+ # RUN cd /usr/src/geonode-contribs/geonode-logstash; pip install --upgrade -e . \
72
+ # cd /usr/src/geonode-contribs/ldap; pip install --upgrade -e .
72
73
73
74
RUN pip install --upgrade --no-cache-dir --src /usr/src -r requirements.txt
74
75
RUN pip install --upgrade -e .
75
76
77
+ # Cleanup apt update lists
78
+ RUN rm -rf /var/lib/apt/lists/*
79
+
76
80
# Export ports
77
81
EXPOSE 8000
78
82
0 commit comments