From 58ca77bbcd0399ecf918f501b483849ce76548a0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=8E=E7=8E=89?=
Date: Wed, 3 Aug 2022 08:52:04 +0000
Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20'8/Dockerfile'?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
8/Dockerfile | 12 ++++++++++++
1 file changed, 12 insertions(+)
create mode 100644 8/Dockerfile
diff --git a/8/Dockerfile b/8/Dockerfile
new file mode 100644
index 0000000..f76f421
--- /dev/null
+++ b/8/Dockerfile
@@ -0,0 +1,12 @@
+FROM node:8-alpine
+
+RUN set -eu; \
+ sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories; \
+ apk add --no-cache tzdata \
+ && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
+ && echo "Asia/Shanghai" > /etc/timezone \
+ && apk del tzdata; \
+ npm config set registry https://registry.npm.taobao.org; \
+ cp /root/.npmrc /home/node; \
+ chown node:node /home/node/.npmrc
+USER node
\ No newline at end of file