Skip to content

Instantly share code, notes, and snippets.

@jthomas
Created July 31, 2017 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jthomas/9dea9e8439ec989504f45647cb7ca156 to your computer and use it in GitHub Desktop.
Save jthomas/9dea9e8439ec989504f45647cb7ca156 to your computer and use it in GitHub Desktop.
Custom Docker image for using Python ML libraries on OpenWhisk
FROM openwhisk/python3action
# lapack-dev is available in community repo.
RUN echo "http://dl-4.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories
# add package build dependencies
RUN apk add --no-cache \
g++ \
lapack-dev \
gfortran
# add python packages
RUN pip install \
numpy \
pandas \
scipy \
sklearn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment