Skip to content

Instantly share code, notes, and snippets.

@shau-lok
Created May 23, 2018 14:53
Show Gist options
  • Save shau-lok/d435c3ad1e12fed971f6f8383ef05b57 to your computer and use it in GitHub Desktop.
Save shau-lok/d435c3ad1e12fed971f6f8383ef05b57 to your computer and use it in GitHub Desktop.
Dockerfile - django
FROM python:3.6.5-slim
MAINTAINER shau-lok
RUN apt-get update \
&& apt-get -yq install python-dev libmysqlclient-dev \
libicu-dev apt-utils gcc curl wget vim \
&& apt-get clean all
WORKDIR /app
ADD . /app
# celery for root user
ENV C_FORCE_ROOT true
RUN pip install -r requirements.txt -i https://pypi.douban.com/simple/
RUN cp deploy/.env.example .env
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment