|
4 | 4 |
|
5 | 5 | ## Start |
6 | 6 |
|
7 | | -### Docker |
| 7 | +### Docker: prebuilt image |
| 8 | + |
| 9 | +Use the published GitHub Container Registry image when you only want to run the |
| 10 | +app and do not need to rebuild it from source. |
| 11 | + |
| 12 | +```bash |
| 13 | +git clone https://github.com/SunOner/react_labelimg.git |
| 14 | +cd react_labelimg |
| 15 | +cp .env.example .env |
| 16 | +docker compose -f docker-compose.ghcr.yml pull |
| 17 | +docker compose -f docker-compose.ghcr.yml up |
| 18 | +``` |
| 19 | + |
| 20 | +On Windows PowerShell: |
| 21 | + |
| 22 | +```powershell |
| 23 | +git clone https://github.com/SunOner/react_labelimg.git |
| 24 | +cd react_labelimg |
| 25 | +Copy-Item .env.example .env |
| 26 | +docker compose -f docker-compose.ghcr.yml pull |
| 27 | +docker compose -f docker-compose.ghcr.yml up |
| 28 | +``` |
| 29 | + |
| 30 | +The default image tag is `main`: |
| 31 | + |
| 32 | +```bash |
| 33 | +ghcr.io/sunoner/react_labelimg:main |
| 34 | +``` |
| 35 | + |
| 36 | +The Docker workflow publishes `main` and `latest` for default branch builds. |
| 37 | +Tagged releases such as `v0.1.0` publish version tags such as `0.1.0` and |
| 38 | +`0.1`. |
| 39 | + |
| 40 | +### Docker: build from source |
8 | 41 |
|
9 | 42 | Docker is the simplest way to run the app on Windows and Ubuntu. It builds the |
10 | 43 | React frontend, installs the FastAPI backend dependencies and serves everything |
11 | 44 | from one container. |
12 | 45 |
|
13 | | -Copy the example environment file and set the host folder that contains your |
14 | | -images: |
| 46 | +Clone the repository, copy the example environment file and set the host folder |
| 47 | +that contains your images: |
15 | 48 |
|
16 | 49 | ```bash |
| 50 | +git clone https://github.com/SunOner/react_labelimg.git |
| 51 | +cd react_labelimg |
17 | 52 | cp .env.example .env |
18 | 53 | ``` |
19 | 54 |
|
20 | 55 | On Windows PowerShell: |
21 | 56 |
|
22 | 57 | ```powershell |
| 58 | +git clone https://github.com/SunOner/react_labelimg.git |
| 59 | +cd react_labelimg |
23 | 60 | Copy-Item .env.example .env |
24 | 61 | ``` |
25 | 62 |
|
@@ -51,15 +88,12 @@ Stop the app: |
51 | 88 | docker compose down |
52 | 89 | ``` |
53 | 90 |
|
54 | | -Build a release image manually: |
| 91 | +Build a local image manually: |
55 | 92 |
|
56 | 93 | ```bash |
57 | | -docker build -t labelimg-next:0.1.0 . |
| 94 | +docker build -t labelimg-next:local . |
58 | 95 | ``` |
59 | 96 |
|
60 | | -Tagged GitHub releases such as `v0.1.0` are also built by the Docker workflow |
61 | | -and published to GitHub Container Registry as `ghcr.io/<owner>/<repo>:0.1.0`. |
62 | | - |
63 | 97 | ### Local Python/Node |
64 | 98 |
|
65 | 99 | On Windows, run the project from inside WSL (WSL2 recommended). Open a WSL |
|
0 commit comments