diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..5def073 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM tomcat:7.0.94-alpine + +LABEL maintainer="peng.ling@free-sun.com.cn" + +RUN cp /etc/apk/repositories /etc/apk/repositories.bak; \ + sed -i "s@http://dl-cdn.alpinelinux.org/@https://repo.huaweicloud.com/@g" /etc/apk/repositories; \ + apk update; \ + apk add tzdata; \ + cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime; \ + echo "Asia/Shanghai" > /etc/timezone; \ + apk del tzdata; +