docs: update Dockerfile
This commit is contained in:
parent
dfdd67b3ae
commit
074e97795b
@ -2,7 +2,7 @@
|
|||||||
title: 我的Dockerfile
|
title: 我的Dockerfile
|
||||||
description:
|
description:
|
||||||
published: true
|
published: true
|
||||||
date: 2024-01-08T14:00:47.116Z
|
date: 2024-01-23T03:02:08.116Z
|
||||||
tags: docker, 技术, code, 代码
|
tags: docker, 技术, code, 代码
|
||||||
editor: ckeditor
|
editor: ckeditor
|
||||||
dateCreated: 2023-04-03T09:10:22.169Z
|
dateCreated: 2023-04-03T09:10:22.169Z
|
||||||
@ -17,11 +17,18 @@ RUN apt-get update \
|
|||||||
&& n latest \
|
&& n latest \
|
||||||
&& npm install -g yarn \</code></pre>
|
&& npm install -g yarn \</code></pre>
|
||||||
<h1>ocer-world</h1>
|
<h1>ocer-world</h1>
|
||||||
<pre><code class="language-plaintext">FROM node:latest
|
<p> </p>
|
||||||
|
<pre><code class="language-plaintext"># 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 \
|
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 \
|
&& cd /ocer-world/land \
|
||||||
&& npm install
|
&& npm install
|
||||||
|
|
||||||
CMD cd ocer-world \
|
CMD cd ocer-world \
|
||||||
&& git pull \
|
&& git pull \
|
||||||
&& cd land \
|
&& cd land \
|
||||||
|
Loading…
Reference in New Issue
Block a user