Skip to content

Instantly share code, notes, and snippets.

@marvinhoxha
Created August 29, 2022 09:54
Show Gist options
  • Save marvinhoxha/78a2703836a651bdaa85c1b3ae119fb2 to your computer and use it in GitHub Desktop.
Save marvinhoxha/78a2703836a651bdaa85c1b3ae119fb2 to your computer and use it in GitHub Desktop.
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