diff --git a/Dockerfile.html b/Dockerfile.html index 8d6b7d6..641f4d0 100644 --- a/Dockerfile.html +++ b/Dockerfile.html @@ -2,7 +2,7 @@ title: 我的Dockerfile description: published: true -date: 2024-01-08T14:00:47.116Z +date: 2024-01-23T03:02:08.116Z tags: docker, 技术, code, 代码 editor: ckeditor dateCreated: 2023-04-03T09:10:22.169Z @@ -17,11 +17,18 @@ RUN apt-get update \ && n latest \ && npm install -g yarn \

ocer-world

-
FROM node:latest
+

 

+
# docker build . -t ocer-world:3.1 --build-arg GITEAUSER= --build-arg GITEAPASS=
+
+FROM node:latest
+ARG GITEAUSER
+ARG GITEAPASS
+
 RUN npm install -g hexo-cli \
-&& git clone https://gitea.ocer.cc/overcast404/ocer-world.git \
+&& git clone https://$GITEAUSER:$GITEAPASS@gitea.ocer.cc/overcast404/ocer-world.git \
 && cd /ocer-world/land \
 && npm install
+
 CMD cd ocer-world \
 && git pull \
 && cd land \