upgrade build configration

This commit is contained in:
Beichi-CHs
2021-11-18 12:38:49 +08:00
parent d98b71f9e8
commit 3754fa2542
4 changed files with 36 additions and 29 deletions

View File

@@ -1,11 +1,11 @@
FROM python:3.7-alpine3.9
FROM python:3.8-alpine3.14
ENV OJ_ENV production
ADD . /app
WORKDIR /app
HEALTHCHECK --interval=5s --retries=3 CMD python2 /app/deploy/health_check.py
HEALTHCHECK --interval=5s --retries=3 CMD python3 /app/deploy/health_check.py
RUN apk add --update --no-cache build-base nginx openssl curl unzip supervisor jpeg-dev zlib-dev postgresql-dev freetype-dev && \
pip install --no-cache-dir -r /app/deploy/requirements.txt && \