Skip to content

Commit

Permalink
Upgrade Dockerfile to 3.12-bullseye
Browse files Browse the repository at this point in the history
  • Loading branch information
szabozoltan69 committed Feb 13, 2024
1 parent a920c53 commit ec97be0
Show file tree
Hide file tree
Showing 5 changed files with 104 additions and 96 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.9-bullseye
FROM python:3.12-bullseye

ENV PYTHONUNBUFFERED 1
EXPOSE 80
Expand Down Expand Up @@ -35,7 +35,7 @@ RUN playwright install \

# TODO: Refactor the whole Azure storage part. (Upgrade is not enough, was tested.)
# Until then avoid some SyntaxWarnings ("is" with a literal):
ENV AZUREROOT=/usr/local/lib/python3.9/site-packages/azure/storage/
ENV AZUREROOT=/usr/local/lib/python3.12/site-packages/azure/storage/
RUN perl -pi -e 's/ is 0 / == 0 /' ${AZUREROOT}blob/_upload_chunking.py
RUN perl -pi -e 's/ is not -1 / != 1 /' ${AZUREROOT}blob/baseblobservice.py
RUN perl -pi -e "s/ is '' / == '' /" ${AZUREROOT}common/_connection.py
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ services:
POSTGRES_USER: test
POSTGRES_DB: test
volumes:
- './.db/pg:/var/lib/postgresql/data'
- './.db/pg-12:/var/lib/postgresql/data'
extra_hosts:
- "host.docker.internal:host-gateway"

Expand Down
2 changes: 1 addition & 1 deletion main/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
main URL Configuration
"""
from django.views.decorators.clickjacking import xframe_options_exempt
from django.urls import include, path, re_path as url
from django.urls import include, path, re_path as url # FIXME later as best practice is "path"
from django.conf import settings
from django.contrib import admin
from django.conf.urls import static
Expand Down
Loading

0 comments on commit ec97be0

Please sign in to comment.