2017-10-23 02:47:26 +00:00
|
|
|
FROM python:3.6-alpine3.6
|
|
|
|
|
2017-10-23 12:59:44 +00:00
|
|
|
ENV OJ_ENV production
|
2017-10-24 13:14:29 +00:00
|
|
|
RUN apk add --no-cache supervisor jpeg-dev zlib-dev postgresql-dev freetype-dev
|
2017-10-23 12:59:44 +00:00
|
|
|
|
2016-10-30 04:56:47 +00:00
|
|
|
ADD requirements.txt /tmp
|
2017-10-23 12:59:44 +00:00
|
|
|
RUN apk add --no-cache build-base && \
|
|
|
|
pip install --no-cache-dir -r /tmp/requirements.txt -i https://pypi.doubanio.com/simple && \
|
|
|
|
apk del build-base --purge
|
2017-10-23 02:47:26 +00:00
|
|
|
|
2017-10-23 12:59:44 +00:00
|
|
|
VOLUME [ "/app" ]
|
2017-10-23 02:47:26 +00:00
|
|
|
|
|
|
|
CMD sh /app/deploy/run.sh
|