Created
May 23, 2018 14:53
-
-
Save shau-lok/d435c3ad1e12fed971f6f8383ef05b57 to your computer and use it in GitHub Desktop.
Dockerfile - django
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
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