mirror of https://github.com/veops/cmdb.git
python3.7 timezone fix
This commit is contained in:
parent
cb0eb7eadd
commit
089a17ded8
|
@ -26,7 +26,9 @@ COPY . /data/apps/cmdb
|
||||||
|
|
||||||
WORKDIR /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 \
|
RUN pip install --no-cache-dir -r docs/requirements.txt \
|
||||||
&& cp ./api/settings.py.example ./api/settings.py \
|
&& cp ./api/settings.py.example ./api/settings.py \
|
||||||
|
|
|
@ -32,7 +32,7 @@ services:
|
||||||
environment:
|
environment:
|
||||||
TZ: Asia/Shanghai
|
TZ: Asia/Shanghai
|
||||||
command:
|
command:
|
||||||
- /bin/bash
|
- /bin/sh
|
||||||
- -c
|
- -c
|
||||||
- |
|
- |
|
||||||
gunicorn --workers=3 autoapp:app -b 0.0.0.0:5000 -D
|
gunicorn --workers=3 autoapp:app -b 0.0.0.0:5000 -D
|
||||||
|
|
Loading…
Reference in New Issue