Merge pull request #56 from zijiren233/zijiren

Feat: Dockerfile ubuntu 可设置时区,默认东八区
This commit is contained in:
Suwings 2022-07-03 16:00:52 +08:00 committed by GitHub
commit 7296c04ebd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -226,8 +226,10 @@ WORKDIR /workspace
}
if (type === 3) {
this.dockerFile = `FROM ubuntu:18.04
ENV TZ=Asia/Shanghai
RUN mkdir -p /workspace
RUN apt -y update && apt -y install openssl
RUN apt -y update && apt -y install openssl && DEBIAN_FRONTEND="noninteractive" apt -y install tzdata
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
WORKDIR /workspace
`;
this.name = "mcsm-ubuntu";