FROM python:3.9.17-alpine3.17

RUN apk add --no-cache --virtual .build-deps gcc musl-dev sqlite-dev build-base linux-headers

WORKDIR /app

COPY . .

RUN pip install -r requirements.txt && apk del .build-deps gcc musl-dev sqlite-dev build-base linux-headers

ENTRYPOINT ["python", "/app/obscreen.py"]
