Created
August 29, 2022 09:54
-
-
Save marvinhoxha/78a2703836a651bdaa85c1b3ae119fb2 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 | |
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