docs: update Dockerfile
This commit is contained in:
parent
0a9bd493a0
commit
fe1a9d5aa9
@ -2,7 +2,7 @@
|
|||||||
title: 我的Dockerfile
|
title: 我的Dockerfile
|
||||||
description:
|
description:
|
||||||
published: true
|
published: true
|
||||||
date: 2023-04-10T05:58:56.346Z
|
date: 2024-01-02T12:30:31.493Z
|
||||||
tags: docker, 技术, code, 代码
|
tags: docker, 技术, code, 代码
|
||||||
editor: ckeditor
|
editor: ckeditor
|
||||||
dateCreated: 2023-04-03T09:10:22.169Z
|
dateCreated: 2023-04-03T09:10:22.169Z
|
||||||
@ -26,3 +26,14 @@ CMD cd ocer-world \
|
|||||||
&& git pull \
|
&& git pull \
|
||||||
&& npm install \
|
&& npm install \
|
||||||
&& hexo server -p 5000</code></pre>
|
&& hexo server -p 5000</code></pre>
|
||||||
|
<h1>ocer-world-new</h1>
|
||||||
|
<pre><code class="language-plaintext">FROM node:latest
|
||||||
|
RUN npm install -g hexo-cli \
|
||||||
|
&& git clone https://gitea.ocer.cc/overcast404/ocer-world.git \
|
||||||
|
&& cd /ocer-world/land \
|
||||||
|
&& npm install
|
||||||
|
CMD cd ocer-world \
|
||||||
|
&& git pull \
|
||||||
|
&& cd land \
|
||||||
|
&& npm install \
|
||||||
|
&& hexo server -p 5000</code></pre>
|
||||||
|
Loading…
Reference in New Issue
Block a user