docs: update Dockerfile

This commit is contained in:
吴阴天 2024-01-02 12:47:58 +00:00 committed by wikijs
parent fe1a9d5aa9
commit 9c5386f639

View File

@ -2,7 +2,7 @@
title: 我的Dockerfile
description:
published: true
date: 2024-01-02T12:30:31.493Z
date: 2024-01-02T12:47:54.888Z
tags: docker, 技术, code, 代码
editor: ckeditor
dateCreated: 2023-04-03T09:10:22.169Z
@ -20,16 +20,6 @@ RUN apt-get update \
<pre><code class="language-plaintext">FROM node:latest
RUN npm install -g hexo-cli \
&amp;&amp; git clone https://gitea.ocer.cc/overcast404/ocer-world.git \
&amp;&amp; cd ocer-world \
&amp;&amp; npm install
CMD cd ocer-world \
&amp;&amp; git pull \
&amp;&amp; npm install \
&amp;&amp; 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 \
&amp;&amp; git clone https://gitea.ocer.cc/overcast404/ocer-world.git \
&amp;&amp; cd /ocer-world/land \
&amp;&amp; npm install
CMD cd ocer-world \