From 5bd5bf7d595891eec6907036a6a672192b29f85a Mon Sep 17 00:00:00 2001 From: Stille Date: Mon, 29 Aug 2022 13:07:03 +0800 Subject: [PATCH] add linux-command --- linux-command/Dockerfile | 19 +++++++++++++++++++ linux-command/README.md | 29 +++++++++++++++++++++++++++++ linux-command/docker-compose.yml | 8 ++++++++ 3 files changed, 56 insertions(+) create mode 100644 linux-command/Dockerfile create mode 100644 linux-command/README.md create mode 100644 linux-command/docker-compose.yml diff --git a/linux-command/Dockerfile b/linux-command/Dockerfile new file mode 100644 index 0000000..8854a41 --- /dev/null +++ b/linux-command/Dockerfile @@ -0,0 +1,19 @@ +FROM node:14-alpine as builder +LABEL maintainer="Stille " + +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;"] diff --git a/linux-command/README.md b/linux-command/README.md new file mode 100644 index 0000000..92093f8 --- /dev/null +++ b/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) diff --git a/linux-command/docker-compose.yml b/linux-command/docker-compose.yml new file mode 100644 index 0000000..68ff6ca --- /dev/null +++ b/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