add dockerfiles
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
FROM python:3.6-alpine3.6
|
||||
|
||||
ADD requirements.txt /tmp
|
||||
RUN apk add --no-cache --virtual .build-deps build-base jpeg-dev zlib-dev postgresql-dev && \
|
||||
pip install -r /tmp/requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple && \
|
||||
apk del .build-deps --purge
|
||||
ENV OJ_ENV production
|
||||
RUN apk add --no-cache nginx supervisor jpeg-dev zlib-dev postgresql-dev freetype-dev
|
||||
|
||||
Volume ["/app"]
|
||||
ADD requirements.txt /tmp
|
||||
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
|
||||
|
||||
VOLUME [ "/app" ]
|
||||
|
||||
CMD sh /app/deploy/run.sh
|
||||
|
||||
Reference in New Issue
Block a user