Răsfoiți Sursa

add linux-command

Stille 3 ani în urmă
părinte
comite
5bd5bf7d59
3 a modificat fișierele cu 56 adăugiri și 0 ștergeri
  1. 19 0
      linux-command/Dockerfile
  2. 29 0
      linux-command/README.md
  3. 8 0
      linux-command/docker-compose.yml

+ 19 - 0
linux-command/Dockerfile

@@ -0,0 +1,19 @@
+FROM node:14-alpine as builder
+LABEL maintainer="Stille <[email protected]>"
+
+WORKDIR /
+
+RUN apk add --no-cache git
+RUN git clone https://github.com/jaywcjlove/linux-command --depth=1 \
+    && cd linux-command \
+    && npm install \
+    && npm build \
+    && npm run dash
+
+FROM nginx:stable-alpine
+
+RUN apk add --no-cache ca-certificates
+COPY --from=builder /linux-command/.deploy /usr/share/nginx/html/
+
+EXPOSE 80
+CMD ["nginx", "-g", "daemon off;"]

+ 29 - 0
linux-command/README.md

@@ -0,0 +1,29 @@
+# linux-command
+GitHub [stilleshan/dockerfiles](https://github.com/stilleshan/dockerfiles)  
+Docker [stilleshan/linux-command](https://hub.docker.com/r/stilleshan/linux-command)
+> *docker image support for X86 and ARM*
+
+## 简介
+基于 [jaywcjlove/linux-command](https://github.com/jaywcjlove/linux-command) 项目的 docker 镜像. 方便快速,离线部署使用.
+
+## 示例
+[https://linux.ioiox.com](https://linux.ioiox.com)
+
+## 更新
+由于该项目比较活跃和热门,本镜像将定时自动更新最新版.
+
+## 部署
+### docker
+```shell
+docker run  -d --name=linux-command --restart=always -p 8888:80 stilleshan/linux-command
+```
+
+### docker compose
+下载 [docker-compose.yml](https://raw.githubusercontent.com/stilleshan/dockerfiles/main/linux-command/docker-compose.yml) 执行以下命令启动:
+```shell
+docker-compose up -d
+```
+
+## 链接
+- [jaywcjlove/linux-command](https://github.com/jaywcjlove/linux-command)
+- [https://linux.ioiox.com](https://linux.ioiox.com)

+ 8 - 0
linux-command/docker-compose.yml

@@ -0,0 +1,8 @@
+version: "3.3"
+services: 
+  web:
+    image: stilleshan/linux-command
+    container_name: linux-command
+    ports:
+      - 8888:80
+    restart: always