Skip to content

Instantly share code, notes, and snippets.

@chrisdlangton
Created April 21, 2017 02:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisdlangton/dbaa9bd4939b566b3de6f604c588ca0b to your computer and use it in GitHub Desktop.
Save chrisdlangton/dbaa9bd4939b566b3de6f604c588ca0b to your computer and use it in GitHub Desktop.
python Dockerfile for melbdatathon 2017
FROM python:2.7-alpine
MAINTAINER Christopher Langton <chris@devopsatscale.com.au>
WORKDIR /opt/melbdatathon2017
RUN apk update && \
apk upgrade && \
apk add --update curl git mysql-client bash jq && \
rm -rf /var/cache/apk/* ~/cache/pip/*
RUN pip install --no-cache-dir --upgrade pip
ADD ./requirements.txt /opt/melbdatathon2017/requirements.txt
RUN pip install -r requirements.txt
RUN mkdir -p /opt/melbdatathon2017
COPY ./src/* /opt/melbdatathon2017/
VOLUME ["/opt/melbdatathon2017"]
ENTRYPOINT ["tail", "-f", "/dev/null"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment