Skip to content

Instantly share code, notes, and snippets.

@phoikoi
Forked from spool/Dockerfile
Last active October 19, 2018 01:51
Show Gist options
  • Save phoikoi/11e0155fa05917957ba8b7b2a557e0d9 to your computer and use it in GitHub Desktop.
Save phoikoi/11e0155fa05917957ba8b7b2a557e0d9 to your computer and use it in GitHub Desktop.
Dockerfile for Django core development in progress from DjangoCon US 2018
# Apparently a very small example
# https://blog.realkinetic.com/building-minimal-docker-containers-for-python-applications-37d0272c52f3
FROM python:3
# Get current version of django
RUN git clone http://github.com/django/django
WORKDIR django
RUN apt-get update && apt-get install -y \
build-essential \
python3-bcrypt python3-docutils \
python3-jinja2 python3-mock \
python3-numpy python3-pillow \
python3-setuptools python3-sqlparse \
python3-tblib python3-tz python3-yaml \
libmemcached-dev
# Alpine options
# RUN apk add --no-cache libffi-dev musl-dev
# plylibmc dependencies
# RUN apk add --no-cache libmemcached-dev zlib-dev
# Pillow dependencies
# RUN apk add --no-cache jpeg-dev zlib-dev
# libpng-dev jpeg-dev tiff-dev
# ENV PYTHONUNBUFFERED 1
# Add git
# RUN apk update && apk upgrade && apk add git
RUN pip install -e .
RUN pip install -r tests/requirements/py3.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment