oedb-backend/Dockerfile-backend

18 lines
422 B
Text
Raw Permalink Normal View History

2025-09-15 23:25:11 +02:00
FROM ubuntu:25.04
RUN apt-get update && \
2025-09-15 23:25:11 +02:00
apt-get install -y postgresql-server-dev-all \
python3-dev \
python3-pip \
libgeos-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
2025-09-15 23:25:11 +02:00
COPY requirements.txt /app/
RUN pip3 install --no-cache-dir -r requirements.txt
COPY . /app/
RUN chmod +x /app/setup_db.sh
CMD ./setup_db.sh && uwsgi --http :8080 --wsgi-file backend.py --callable app