2025-09-15 23:25:11 +02:00
|
|
|
FROM ubuntu:25.04
|
2016-08-30 11:48:15 +02:00
|
|
|
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/*
|
|
|
|
|
2016-05-04 19:22:56 +02:00
|
|
|
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
|