Skip to content

Instantly share code, notes, and snippets.

@marvinhoxha
Created August 25, 2022 10:10
Show Gist options
  • Save marvinhoxha/ad442b1f757ef6af3081f383a5640020 to your computer and use it in GitHub Desktop.
Save marvinhoxha/ad442b1f757ef6af3081f383a5640020 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
# 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