Created
August 25, 2022 10:10
-
-
Save marvinhoxha/ad442b1f757ef6af3081f383a5640020 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python:3.8 | |
RUN apt-get update && DEBIAN_FRONTEND=noninteractive && apt-get install -y \ | |
curl \ | |
python3-setuptools && \ | |
apt-get clean && apt-get autoremove -y && rm -rf /var/lib/apt/lists/* | |
RUN mkdir /models | |
WORKDIR /app | |
COPY requirements.txt requirements.txt | |
RUN pip3 install -r requirements.txt | |
# Seldon Core specific | |
COPY /apps . | |
ENV MODEL_NAME DogBreed | |
ENV SERVICE_TYPE MODEL | |
EXPOSE 9000 | |
RUN chown -R 8888 /app | |
CMD exec seldon-core-microservice $MODEL_NAME --service-type $SERVICE_TYPE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment