optar_infra/optar/Dockerfile

16 lines
392 B
Docker
Raw Normal View History

2024-07-18 09:30:33 +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
# yes, coping them at build time is not ideal, this is a PoC
COPY keywords.txt keywords.txt
COPY sites.txt sites.txt
ENTRYPOINT [ "python", "prod.py" ]