2024-07-13 13:11:29 +00:00
|
|
|
FROM python:slim
|
|
|
|
|
WORKDIR /optar
|
|
|
|
|
|
|
|
|
|
# Copy and run requirements install first to save time in following builds
|
|
|
|
|
COPY requirements.txt requirements.txt
|
|
|
|
|
RUN pip install -r requirements.txt
|
|
|
|
|
|
|
|
|
|
COPY prod.py prod.py
|
|
|
|
|
COPY src ./src
|
|
|
|
|
COPY cache ./cache
|
2024-07-16 16:10:13 +00:00
|
|
|
|
|
|
|
|
# yes, coping them at build time is not ideal, this is a PoC
|
2024-07-13 13:11:29 +00:00
|
|
|
COPY keywords.txt keywords.txt
|
|
|
|
|
COPY sites.txt sites.txt
|
|
|
|
|
|
|
|
|
|
ENTRYPOINT [ "python", "prod.py" ]
|