Skip to content

Commit e8fad99

Browse files
committed
Use docker commands instead of scripts in README
1 parent fa55e57 commit e8fad99

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

README.md

+2-17
Original file line numberDiff line numberDiff line change
@@ -23,31 +23,16 @@ according to [pom.xml](pom.xml). The resulting image is 87MB in size.
2323

2424
```shell
2525
# This may take a few minutes.
26-
$ ./create_image.sh
26+
$ docker build -t miguno/java-docker-build:latest .
2727
```
2828

29-
> Example output:
30-
>
31-
> ```
32-
> Building image 'miguno/java-docker-build:latest'
33-
> ...
34-
> Successfully tagged miguno/java-docker-build:latest
35-
> ```
36-
3729
**Step 2:** Start a container for the Docker image.
3830

3931
```shell
4032
$ ./start_container.sh
33+
$ docker run -p 8123:8123 miguno/java-docker-build:latest
4134
```
4235

43-
> Example output:
44-
>
45-
> ```
46-
> Starting container for image 'miguno/java-docker-build:latest', exposing port 8123/tcp
47-
> ...
48-
> Endpoint is available at http://0.0.0.0:8123/status
49-
> ```
50-
5136
**Step 3:** Open another terminal and access the example API endpoint.
5237

5338
```shell

0 commit comments

Comments
 (0)