Fix psycog error

pull/138/head
Irwan Fathurrahman 2025-05-23 08:44:12 +07:00
rodzic 4d24a2354e
commit ad73216017
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: D4CA0A2970099C20
1 zmienionych plików z 11 dodań i 4 usunięć

Wyświetl plik

@ -1,11 +1,18 @@
FROM python:3
FROM python:3.11
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
RUN pip3 install -r /home/requirements.txt
RUN pip3 install --no-binary=psycopg2-binary -r /home/requirements.txt
ADD enrich.py /home/
WORKDIR /home
CMD ["python3", "-u", "/home/enrich.py"]
CMD ["python3", "-u", "/home/enrich.py"]