Skip to content

Commit 9be566b

Browse files
authored
Fix Dockerfile and DB connection (#6)
1 parent 46304b3 commit 9be566b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
FROM ubuntu:24.04
1+
FROM python:3.13-slim-bookworm
22
ARG DEBIAN_FRONTEND=noninteractive
33

44
RUN apt-get update -qq -y \
5-
&& apt-get install -y binutils libproj-dev python3-gdal libgeos-dev libyaml-dev python3-pip \
6-
&& apt-get clean \
5+
&& apt-get install -y binutils libproj-dev python3-gdal libgeos-dev libyaml-dev postgresql-client libpq-dev python3 python3-dev python3-pip \
6+
&& apt-get clean
77
COPY ./requirements.txt requirements.txt
8-
RUN pip install --no-cache-dir --target=packages -r requirements.txt
8+
RUN pip install -r requirements.txt
99

1010
COPY . /app
1111
RUN useradd django

vbos/config/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class Common(Configuration):
5454
DATABASES = {
5555
"default": dj_database_url.config(
5656
default=os.getenv(
57-
"DJANGO_DB_URL", "postgis://postgres:@postgres:5432/vbos"
57+
"DJANGO_DB_URL", "postgis://postgres:postgres@postgres:5432/vbos"
5858
),
5959
conn_max_age=int(os.getenv("POSTGRES_CONN_MAX_AGE", 600)),
6060
)

0 commit comments

Comments
 (0)