FROM python:3.12-slim

LABEL net.unraid.docker.icon="https://static.wikia.nocookie.net/community-sitcom/images/e/eb/Greendalelogo.png/revision/latest?cb=20120321140817"
LABEL net.unraid.docker.webui="http://[IP]:[PORT:5000]/"
LABEL maintainer="Greendale Media Centre"

WORKDIR /app

COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

COPY . .

EXPOSE 5000

CMD ["gunicorn", "--config=gunicorn.conf.py", "app:app"]
