Skip to content

Instantly share code, notes, and snippets.

@bgweber
Last active February 17, 2020 17:04
Show Gist options
  • Save bgweber/01a26c55d49771cf79d0bad901857777 to your computer and use it in GitHub Desktop.
Save bgweber/01a26c55d49771cf79d0bad901857777 to your computer and use it in GitHub Desktop.
FROM ubuntu:latest
MAINTAINER Ben Weber
RUN apt-get update \
&& apt-get install -y python3-pip python3-dev \
&& cd /usr/local/bin \
&& ln -s /usr/bin/python3 python
RUN pip3 install flask
RUN pip3 install pandas
RUN pip3 install gunicorn
RUN pip3 install scikit-learn
RUN pip3 install google-cloud-logging
RUN pip3 install google-cloud-monitoring
COPY serving.json serving.json
COPY app.py app.py
ENTRYPOINT ["gunicorn", "--bind", "0.0.0.0", "serving:app"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment