diff --git a/Dockerfile b/Dockerfile index 6cc050b3f..662347819 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,6 +4,7 @@ LABEL MAINTAINER https://github.com/DIYgod/RSSHub/ RUN apt-get update && apt-get install -yq libgconf-2-4 apt-transport-https ENV NODE_ENV production +ENV TZ Asia/Shanghai WORKDIR /app diff --git a/docs/install/README.md b/docs/install/README.md index 536aa44f5..969346ea7 100644 --- a/docs/install/README.md +++ b/docs/install/README.md @@ -70,7 +70,7 @@ $ docker pull diygod/rsshub 然后运行 RSSHub 即可 ```bash -$ docker run -d -e "TZ=Asia/Shanghai" --name rsshub -p 1200:1200 diygod/rsshub +$ docker run -d --name rsshub -p 1200:1200 diygod/rsshub ``` 在浏览器中打开 [http://127.0.0.1:1200/](http://127.0.0.1:1200/), enjoy it! ✅