websucker-pip/mongo/Dockerfile
2023-04-09 09:13:15 +02:00

17 lines
422 B
Docker

FROM python:3.9
RUN mkdir /app
COPY requirements.txt /app
RUN pip install -r /app/requirements.txt
COPY *.py /app
WORKDIR /app
# redis config
ENV REDIS_URL="redis://localhost:6379/"
ENV QUEUES="high,default,low"
# sucker config
ENV SUCKER_LANGUAGE="sk"
ENV SUCKER_DOMAIN="sk"
ENV SUCKER_BATCHSIZE="10"
ENV SUCKER_CONNECTION="mongodb://root:example@localhost:27017/"
ENV SUCKER_DBNAME="crawler"
ENTRYPOINT ["rq", "worker"]