15 lines
490 B
Docker
15 lines
490 B
Docker
FROM python:3.7.15-alpine3.16
|
|
|
|
ADD . /app
|
|
|
|
WORKDIR /app
|
|
|
|
RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
|
|
&& apk add --no-cache --virtual .build-deps gcc musl-dev libffi-dev openssl-dev bash \
|
|
&& apk add --no-cache libffi openssl \
|
|
&& pip install --no-cache-dir --upgrade pip setuptools wheel gunicorn \
|
|
&& pip install --no-cache-dir -r requirements/production.txt \
|
|
&& apk del .build-deps
|
|
|
|
CMD gunicorn --bind '[::]:8000' --timeout 120 'domain_admin.main:app'
|