diff --git a/Dockerfile b/Dockerfile index 155b58e..94aa6f1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,11 @@ -FROM ubuntu:24.04 +FROM python:3.13-slim-bookworm ARG DEBIAN_FRONTEND=noninteractive RUN apt-get update -qq -y \ - && apt-get install -y binutils libproj-dev python3-gdal libgeos-dev libyaml-dev python3-pip \ - && apt-get clean \ + && apt-get install -y binutils libproj-dev python3-gdal libgeos-dev libyaml-dev postgresql-client libpq-dev python3 python3-dev python3-pip \ + && apt-get clean COPY ./requirements.txt requirements.txt -RUN pip install --no-cache-dir --target=packages -r requirements.txt +RUN pip install -r requirements.txt COPY . /app RUN useradd django diff --git a/vbos/config/common.py b/vbos/config/common.py index 6e4ddb0..758d9cb 100755 --- a/vbos/config/common.py +++ b/vbos/config/common.py @@ -54,7 +54,7 @@ class Common(Configuration): DATABASES = { "default": dj_database_url.config( default=os.getenv( - "DJANGO_DB_URL", "postgis://postgres:@postgres:5432/vbos" + "DJANGO_DB_URL", "postgis://postgres:postgres@postgres:5432/vbos" ), conn_max_age=int(os.getenv("POSTGRES_CONN_MAX_AGE", 600)), )