OnlineJudge/deploy/Dockerfile

13 lines
392 B
Docker
Raw Normal View History

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
2017-11-24 19:37:40 +00:00
ADD deploy/requirements.txt /tmp
RUN apk add --update --no-cache build-base nginx openssl && \
2017-10-23 12:59:44 +00:00
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-11-24 19:37:40 +00:00
ADD . /app
2017-10-23 02:47:26 +00:00
CMD sh /app/deploy/run.sh