2022-04-19 17:58:19 +02:00

21 lines
397 B
Docker

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