FROM python:3.10-slim-buster

COPY requirements.txt /

RUN apt-get update && \
    apt-get upgrade -y && \
    apt-get install -y libpq-dev python-dev gcc g++ zlib1g-dev libjpeg-dev && \
    apt-get install -y fish libffi-dev neofetch ranger iputils-ping postgresql-client && \
	apt-get clean

RUN pip3 install -r requirements.txt
RUN pip3 install Flask-Migrate

COPY app.py /
COPY gunicorn-cfg.py /

ENV DATABASE_URL=postgresql://matchinit:matchinit@localhost/matchinit

WORKDIR /

CMD ["neofetch"]
