wikijs/docker/Dockerfile.html

27 lines
747 B
HTML

<!--
title: 我的Dockerfile
description:
published: true
date: 2023-04-07T01:39:19.936Z
tags: docker, 技术, code, 代码
editor: ckeditor
dateCreated: 2023-04-03T09:10:22.169Z
-->
<h5>my-code-server</h5>
<pre><code class="language-plaintext">FROM lscr.io/linuxserver/code-server:latest
RUN apt-get update \
&amp;&amp; apt install -y npm \
&amp;&amp; apt install -y git \
&amp;&amp; npm install -g n \
&amp;&amp; n latest \
&amp;&amp; npm install -g yarn \</code></pre>
<h5>ocer-world</h5>
<pre><code class="language-plaintext">FROM node
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 \
hexo server -p 5000</code></pre>