From 31b5f36ea8c594b52600690ace55393238bab7c3 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 29 May 2020 20:50:22 +0800 Subject: [PATCH] Update README.md --- README.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9bbe56dd..2a67635b 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,23 @@ React Native Doc === -![Build and Deploy react-native-doc](https://github.com/jaywcjlove/react-native-doc/workflows/Build%20and%20Deploy%20react-native-doc/badge.svg) ![Docker Image Version (latest by date)](https://img.shields.io/docker/v/wcjiang/react-native?label=@wcjiang/react-native) [![Docker Stars](https://img.shields.io/docker/stars/wcjiang/react-native)](https://hub.docker.com/r/wcjiang/react-native) +![Build and Deploy react-native-doc](https://github.com/jaywcjlove/react-native-doc/workflows/Build%20and%20Deploy%20react-native-doc/badge.svg) [![Docker Image Version (latest by date)](https://img.shields.io/docker/v/wcjiang/react-native?label=@wcjiang/react-native)](https://hub.docker.com/r/wcjiang/react-native) [![Docker Stars](https://img.shields.io/docker/stars/wcjiang/react-native)](https://hub.docker.com/r/wcjiang/react-native) 这里是本地离线预览 [React Native](https://github.com/facebook/react-native/) 官方文档的方法,解决因官网 CDN 资源导致无法打开官方文档网站,已经将处理好的 HTML 存放在 [gh-pages](https://github.com/jaywcjlove/react-native-doc/tree/gh-pages) 分支,只需克隆配合 [sgo](https://github.com/jaywcjlove/sgo) 工具预览即可。 -- Docker 部署 [@jaywcjlove/document](https://github.com/jaywcjlove/document) +## Docker 部署 + +> Port: `60005` - [react-native-doc](https://facebook.github.io/react-native/) + +```shell +docker pull wcjiang/react-native:latest +``` + +Run Server + +```shell +docker run --name react-native -p 60001:60001 --restart=always -d wcjiang/react-native:latest +``` ## 下载工程