mirror of https://github.com/Askill/optar.git
14 lines
330 B
Docker
14 lines
330 B
Docker
|
|
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
|
||
|
|
COPY keywords.txt keywords.txt
|
||
|
|
COPY sites.txt sites.txt
|
||
|
|
|
||
|
|
ENTRYPOINT [ "python", "prod.py" ]
|