Skip to content

Instantly share code, notes, and snippets.

@andreleoni
Created January 26, 2018 14:18
Show Gist options
  • Save andreleoni/cb77aa1da9708e8ae19c0246954fc122 to your computer and use it in GitHub Desktop.
Save andreleoni/cb77aa1da9708e8ae19c0246954fc122 to your computer and use it in GitHub Desktop.
python / django docker
FROM python:3.4-alpine
MAINTAINER André Leoni <andreluizleoni@gmail.com>
RUN apk add --update \
python \
python-dev \
py-pip \
build-base \
libpng \
freetype-dev \
libjpeg-turbo-dev \
libpng-dev \
git \
nodejs \
&& npm install -g coffee-script \
&& pip install virtualenv \
&& rm -rf /var/cache/apk/*
ENV PYTHONUNBUFFERED 1
RUN mkdir /code
WORKDIR /code
ADD requirements.txt /code/
RUN python -m pip install --upgrade pip
RUN pip install --upgrade setuptools
RUN pip install matplotlib
RUN pip install numpy
# RUN pip install scipy
RUN pip install pandas
RUN pip install yahoo_finance
RUN pip install -r requirements.txt
ADD . /code/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment