wikijs/Dockerfile.html

39 lines
1.1 KiB
HTML

<!--
title: 我的Dockerfile
description:
published: true
date: 2024-01-08T14:00:47.116Z
tags: docker, 技术, code, 代码
editor: ckeditor
dateCreated: 2023-04-03T09:10:22.169Z
-->
<h1>my-code-server</h1>
<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>
<h1>ocer-world</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 \
&amp;&amp; git pull \
&amp;&amp; cd land \
&amp;&amp; hexo clean \
&amp;&amp; hexo g \
&amp;&amp; hexo server -sp 5000</code></pre>
<h1>imageAve</h1>
<pre><code class="language-plaintext">FROM golang:latest
RUN git clone https://gitea.ocer.cc/overcast404/imageAve.git \
&amp;&amp; cd imageAve \
&amp;&amp; go mod tidy
CMD go run /imageAve/api/img2color.go</code></pre>
<p>&nbsp;</p>
<p>&nbsp;</p>