Skip to content

Commit

Permalink
[Dockerfile] Forcing Debian libraries upgrade before installing the n…
Browse files Browse the repository at this point in the history
…ew one
  • Loading branch information
afabiani committed Mar 14, 2022
1 parent e065696 commit b1d2160
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 260 deletions.
253 changes: 0 additions & 253 deletions .travis.yml

This file was deleted.

18 changes: 11 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.8.9-buster
FROM python:3.10.2-buster
LABEL GeoNode development team

RUN mkdir -p /usr/src/geonode
Expand All @@ -13,23 +13,24 @@ RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-k
RUN echo "deb http://deb.debian.org/debian/ bullseye main contrib non-free" | tee /etc/apt/sources.list.d/debian.list

# This section is borrowed from the official Django image but adds GDAL and others
RUN apt-get update && apt-get install -y \
RUN apt-get update -y && apt-get upgrade -y

# Prepraing dependencies
RUN apt-get install -y \
libgdal-dev libpq-dev libxml2-dev \
libxml2 libxslt1-dev zlib1g-dev libjpeg-dev \
libmemcached-dev libldap2-dev libsasl2-dev libffi-dev

RUN apt-get update && apt-get install -y \
RUN apt-get install -y --no-install-recommends \
gcc zip gettext geoip-bin cron \
postgresql-client-13 \
sqlite3 spatialite-bin libsqlite3-mod-spatialite \
python3-dev python3-gdal python3-psycopg2 python3-ldap \
python3-pip python3-pil python3-lxml python3-pylibmc \
uwsgi uwsgi-plugin-python3 \
firefox-esr \
--no-install-recommends && rm -rf /var/lib/apt/lists/*
firefox-esr

# Prepraing dependencies
RUN apt-get update && apt-get install -y devscripts build-essential debhelper pkg-kde-tools sharutils
RUN apt-get install -y devscripts build-essential debhelper pkg-kde-tools sharutils
# RUN git clone https://salsa.debian.org/debian-gis-team/proj.git /tmp/proj
# RUN cd /tmp/proj && debuild -i -us -uc -b && dpkg -i ../*.deb

Expand Down Expand Up @@ -73,6 +74,9 @@ RUN cd /usr/src/geonode-contribs/geonode-logstash; pip install --upgrade -e . \
RUN pip install --upgrade --no-cache-dir --src /usr/src -r requirements.txt
RUN pip install --upgrade -e .

# Cleanup apt update lists
RUN rm -rf /var/lib/apt/lists/*

# Export ports
EXPOSE 8000

Expand Down

0 comments on commit b1d2160

Please sign in to comment.