FROM postgres:latest

RUN apt-get -y update
RUN apt-get install -y python3 python3-pip
RUN apt-get install -y postgresql-plpython3-12

RUN pip3 install numpy scipy sklearn

ADD mushrooms_ix.csv /tmp
ADD postgres_init /docker-entrypoint-initdb.d