optar/Dockerfile

16 lines
392 B
Docker
Raw Permalink Normal View History

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
COPY keywords.txt keywords.txt
COPY sites.txt sites.txt
ENTRYPOINT [ "python", "prod.py" ]