Skip to content

Instantly share code, notes, and snippets.

@tag1216
Created October 25, 2016 09:15
Show Gist options
  • Save tag1216/d1044fe7c33c1991b82820acfd56b85e to your computer and use it in GitHub Desktop.
Save tag1216/d1044fe7c33c1991b82820acfd56b85e to your computer and use it in GitHub Desktop.
Docker django
FROM ubuntu:latest
RUN apt-get update && apt-get -y upgrade
RUN apt-get -y install build-essential
RUN apt-get -y install python3-dev
RUN apt-get -y install curl
RUN cd /usr/bin \
&& ln -s python3 python
RUN curl -kL https://bootstrap.pypa.io/get-pip.py | python
RUN pip install django
RUN mkdir /mysite \
&& cd /mysite \
&& django-admin startproject mysite .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment