python3.7 timezone fix

This commit is contained in:
pycook 2019-11-13 13:56:44 +08:00
parent cb0eb7eadd
commit 089a17ded8
2 changed files with 4 additions and 2 deletions

View File

@ -26,7 +26,9 @@ COPY . /data/apps/cmdb
WORKDIR /data/apps/cmdb
RUN apk add --no-cache gcc musl-dev libffi-dev
RUN apk add --no-cache tzdata gcc musl-dev libffi-dev
ENV TZ=Asia/Shanghai
RUN pip install --no-cache-dir -r docs/requirements.txt \
&& cp ./api/settings.py.example ./api/settings.py \

View File

@ -32,7 +32,7 @@ services:
environment:
TZ: Asia/Shanghai
command:
- /bin/bash
- /bin/sh
- -c
- |
gunicorn --workers=3 autoapp:app -b 0.0.0.0:5000 -D