Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion vbos/config/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
)
Expand Down