# 設定時區為上海
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo 'Asia/Shanghai' > /etc/timezone
# 安裝Nginx
RUN apt update \
&& apt install -y curl gnupg2 ca-certificates lsb-release \
&& echo "deb http://nginx.org/packages/debian `lsb_release -cs` nginx" | tee /etc/apt/sources.list.d/nginx.list \
&& curl -fsSL https://nginx.org/keys/nginx_signing.key | apt-key add - \
&& apt-key fingerprint ABF5BD827BD9BF62 \
&& apt update -y && apt install -y nginx \
&& apt clean && rm -rf /var/lib/apt/lists/*
本作品採用《CC 協議》,轉載必須註明作者和本文連結