<reponame>mwettste/AbfallkalenderScript
FROM python:3.9-slim as base

FROM base as build-stage

RUN mkdir /install
WORKDIR /install

COPY requirements.txt /requirements.txt
RUN pip install --prefix=/install -r /requirements.txt

FROM base

WORKDIR /usr/src/app

COPY --from=build-stage /install /usr/local
COPY AbfallkalenderDownloader.py .

RUN useradd -m appuser

USER appuser

ENTRYPOINT ["scrapy"]
CMD ["runspider" , "AbfallkalenderDownloader.py"]