From 378d41b902b615729388719731e8a48eaf638977 Mon Sep 17 00:00:00 2001 From: PengLing Date: Fri, 10 Jun 2022 14:03:55 +0800 Subject: [PATCH] add Dockerfile --- Dockerfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Dockerfile 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; +