Created
October 19, 2018 01:29
-
-
Save spool/d2085cca53f061bf4d20afcaf90728ea to your computer and use it in GitHub Desktop.
Dockerfile for Django core development in progress from DjangoCon US 2018
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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