Browse Source

Update docker to current/supported tool versions (#323)

* Update docker to current/supported tool versions

* Update Dockerfile

* dep updates
Pomax 3 years ago
parent
commit
4fb21cd9f8
3 changed files with 5 additions and 5 deletions
  1. 2 2
      Dockerfile
  2. 2 2
      docker-compose.yml
  3. 1 1
      requirements/production.txt

+ 2 - 2
Dockerfile

@@ -1,4 +1,4 @@
-FROM python:3.7-slim
+FROM python:3.9-slim
 
 # Install packages needed to run your application (not build deps):
 # We need to recreate the /usr/share/man/man{1..8} directories first because
@@ -30,7 +30,7 @@ RUN set -ex \
         zlib1g-dev \
     " \
     && apt-get update && apt-get install -y --no-install-recommends $BUILD_DEPS \
-    && python3.7 -m venv /venv \
+    && python3.9 -m venv /venv \
     && /venv/bin/pip install -U pip \
     && /venv/bin/pip install --no-cache-dir -r /requirements/production.txt \
     && apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false $BUILD_DEPS \

+ 2 - 2
docker-compose.yml

@@ -7,12 +7,12 @@ services:
       POSTGRES_USER: app_user
       POSTGRES_PASSWORD: changeme
     restart: always
-    image: postgres:9.6
+    image: postgres:14.1
     expose:
       - "5432"
   redis:
     restart: always
-    image: redis:3.0
+    image: redis:6.2
     expose:
       - "6379"
   elasticsearch:

+ 1 - 1
requirements/production.txt

@@ -11,5 +11,5 @@ django-storages>=1.8,<1.9
 # For retrieving credentials and signing requests to Elasticsearch
 botocore>=1.12.33,<1.13
 aws-requests-auth==0.4.0
-django-redis==4.11.0
+django-redis==5.2.0
 django_cache_url==2.0.0