28 lines
700 B
Docker
28 lines
700 B
Docker
FROM image-prediction-base
|
|
|
|
WORKDIR /app/service
|
|
|
|
COPY src src
|
|
COPY incl/pyinfra incl/pyinfra
|
|
COPY incl/pdf2image incl/pdf2image
|
|
COPY data data
|
|
COPY image_prediction image_prediction
|
|
COPY setup.py setup.py
|
|
COPY requirements.txt requirements.txt
|
|
COPY config.yaml config.yaml
|
|
COPY banner.txt banner.txt
|
|
|
|
# Install dependencies differing from base image.
|
|
RUN python3 -m pip install -r requirements.txt
|
|
RUN python3 -m pip install -r incl/pyinfra/requirements.txt
|
|
RUN python3 -m pip install -r incl/pdf2image/requirements.txt
|
|
|
|
RUN python3 -m pip install -e .
|
|
RUN python3 -m pip install -e incl/pyinfra
|
|
RUN python3 -m pip install -e incl/pdf2image
|
|
|
|
EXPOSE 5000
|
|
EXPOSE 8080
|
|
|
|
CMD ["python3", "src/serve.py"]
|