Skip to content

Instantly share code, notes, and snippets.

@saifazmi
Forked from orenitamar/Dockerfile
Created April 14, 2019 17:41
Show Gist options
  • Save saifazmi/a4fbc0e4777e41aa9d485cb03a79029d to your computer and use it in GitHub Desktop.
Save saifazmi/a4fbc0e4777e41aa9d485cb03a79029d to your computer and use it in GitHub Desktop.
Installing numpy, scipy, pandas and matplotlib in Alpine (Docker)
# Below are the dependencies required for installing the common combination of numpy, scipy, pandas and matplotlib
# in an Alpine based Docker image.
FROM alpine:3.4
RUN echo "http://dl-8.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories
RUN apk --no-cache --update-cache add gcc gfortran python python-dev py-pip build-base wget freetype-dev libpng-dev openblas-dev
RUN ln -s /usr/include/locale.h /usr/include/xlocale.h
RUN pip install numpy scipy pandas matplotlib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment