kopia lustrzana https://github.com/kartoza/docker-osm
Fix psycog error
rodzic
4d24a2354e
commit
ad73216017
|
@ -1,11 +1,18 @@
|
||||||
FROM python:3
|
FROM python:3.11
|
||||||
MAINTAINER Irwan Fathurrahman <meomancer@gmail.com>
|
MAINTAINER Irwan Fathurrahman <meomancer@gmail.com>
|
||||||
|
|
||||||
|
# Install system dependencies needed to build psycopg2
|
||||||
|
RUN apt-get update && apt-get install -y \
|
||||||
|
build-essential \
|
||||||
|
libpq-dev \
|
||||||
|
python3-dev \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
ADD requirements.txt /home/requirements.txt
|
ADD requirements.txt /home/requirements.txt
|
||||||
RUN pip3 install -r /home/requirements.txt
|
|
||||||
|
RUN pip3 install --no-binary=psycopg2-binary -r /home/requirements.txt
|
||||||
|
|
||||||
ADD enrich.py /home/
|
ADD enrich.py /home/
|
||||||
|
|
||||||
WORKDIR /home
|
WORKDIR /home
|
||||||
CMD ["python3", "-u", "/home/enrich.py"]
|
CMD ["python3", "-u", "/home/enrich.py"]
|
||||||
|
|
Ładowanie…
Reference in New Issue