默认时区改为上海

This commit is contained in:
HEYAHONG 2025-03-27 16:51:20 +08:00
parent 02a60a42df
commit a73dbf239a
No known key found for this signature in database
GPG Key ID: 97E3E469FE2C920B

View File

@ -2,7 +2,9 @@ FROM debian:latest
MAINTAINER HEYAHONG 2229388563@qq.com
WORKDIR /var/www/html
ENV DEBIAN_FRONTEND noninteractive
ENV TZ=Asia/Shanghai
RUN find /etc/apt -type f | xargs sed -i "s/deb.debian.org/mirrors.ustc.edu.cn/g" && apt-get update && apt-get full-upgrade -yyy && apt-get install -yyy build-essential cmake gcc g++ dbus libdbus-1-dev libcgicc-dev systemd nginx fcgiwrap make libjsoncpp-dev libboost-all-dev emscripten libwebsockets-dev
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN mkdir -p /var/www/html/static && mkdir /var/www/html/api && systemctl enable fcgiwrap && systemctl mask getty@tty1 getty@tty2 getty@tty3 getty@tty4 getty@tty5 getty@tty6 getty@tty7 getty@tty8
COPY src/ /usr/src/
RUN if [ -f /usr/src/Makefile ]; then make -C /usr/src; else true;fi