deploy script

This commit is contained in:
virusdefender
2017-11-25 03:37:40 +08:00
parent 2d038c7bcc
commit 6d08011e2d
13 changed files with 127 additions and 76 deletions

View File

@@ -3,11 +3,10 @@ FROM python:3.6-alpine3.6
ENV OJ_ENV production
RUN apk add --no-cache supervisor jpeg-dev zlib-dev postgresql-dev freetype-dev
ADD requirements.txt /tmp
RUN apk add --no-cache build-base && \
ADD deploy/requirements.txt /tmp
RUN apk add --update --no-cache build-base nginx openssl && \
pip install --no-cache-dir -r /tmp/requirements.txt -i https://pypi.doubanio.com/simple && \
apk del build-base --purge
VOLUME [ "/app" ]
ADD . /app
CMD sh /app/deploy/run.sh