🎨 修改dockerfile
This commit is contained in:
parent
8a10688247
commit
bbea6e59f8
@ -18,7 +18,11 @@ COPY --from=0 /go/src/miniapp/resource ./resource/
|
||||
COPY --from=0 /go/src/miniapp/docker/config.docker.yaml ./docker/
|
||||
COPY --from=0 /go/src/miniapp/docker ./
|
||||
|
||||
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime RUN echo "Asia/Shanghai" > /etc/timezone
|
||||
# 添加时区环境变量,亚洲,上海
|
||||
ENV TimeZone=Asia/Shanghai
|
||||
# 使用软连接,并且将时区配置覆盖/etc/timezone
|
||||
RUN ln -snf /usr/share/zoneinfo/$TimeZone /etc/localtime && echo $TimeZone > /etc/timezone
|
||||
|
||||
|
||||
EXPOSE 8888
|
||||
ENTRYPOINT ./server -c docker/config.docker.yaml
|
||||
|
Loading…
Reference in New Issue
Block a user