Update README

This commit is contained in:
Xiaonan Shen 2020-11-19 20:40:52 -08:00
parent cdd988ea42
commit f0415daf4f
No known key found for this signature in database
GPG Key ID: 211BF560D12417F5

View File

@ -13,17 +13,20 @@ GitHub: [https://github.com/shenxn/protonmail-bridge-docker](https://github.com/
## ARM Support ## ARM Support
We now support ARM devices (arm64 and arm/v7)! Use the images tagged with `build`. See next section for details. We now support ARM devices (`arm64` and `arm/v7`)! Use the images tagged with `build`. See next section for details.
## Tags ## Tags
There are two types of images.
- `deb`: Images based on the official [.deb release](https://protonmail.com/bridge/install). It only supports the `amd64` architecture.
- `build`: Images based on the [source code](https://github.com/ProtonMail/proton-bridge). It supports `amd64`, `arm64`, and `arm/v7`. Supporting to more architectures is possible. PRs are welcome.
tag | description tag | description
-- | -- -- | --
`latest` | latest image based on [.deb release](https://protonmail.com/bridge/install) `latest` | latest `deb` image
`[version]` | images based on .deb release `[version]` | `deb` images
`build` | latest image built from [source](https://github.com/ProtonMail/proton-bridge) `build` | latest `build` image
`[version]-build` | images built from source `[version]-build` | `build` images
`dev`, `[version]-dev`, `[version]-build-dev` | images built from dev branch (not recommend)
## Initialization ## Initialization
@ -54,3 +57,12 @@ The bridge currently only supports some of the email clients. More details can b
## Bridge CLI Guide ## Bridge CLI Guide
The initialization step exposes the bridge CLI so you can do things like switch between combined and split mode, change proxy, etc. The [official guide](https://protonmail.com/support/knowledge-base/bridge-cli-guide/) gives more information on to use the CLI. The initialization step exposes the bridge CLI so you can do things like switch between combined and split mode, change proxy, etc. The [official guide](https://protonmail.com/support/knowledge-base/bridge-cli-guide/) gives more information on to use the CLI.
## Build
For anyone who want to build this container on your own (for development or security concerns), here is the guide to do so. First, you need to `cd` into the directory (`deb` or `build`, depending on which type of image you want). Then just run the docker build command
```
docker build .
```
That's it. The `Dockerfile` and bash scripts handle all the downloading, building, and packing. You can also add tags, push to your favorite docker registry, or use `buildx` to build multi architecture images.