File tree 1 file changed +2
-17
lines changed
1 file changed +2
-17
lines changed Original file line number Diff line number Diff line change @@ -23,31 +23,16 @@ according to [pom.xml](pom.xml). The resulting image is 87MB in size.
23
23
24
24
``` shell
25
25
# This may take a few minutes.
26
- $ ./create_image.sh
26
+ $ docker build -t miguno/java-docker-build:latest .
27
27
```
28
28
29
- > Example output:
30
- >
31
- > ```
32
- > Building image 'miguno/java-docker-build:latest'
33
- > ...
34
- > Successfully tagged miguno/java-docker-build:latest
35
- > ```
36
-
37
29
** Step 2:** Start a container for the Docker image.
38
30
39
31
``` shell
40
32
$ ./start_container.sh
33
+ $ docker run -p 8123:8123 miguno/java-docker-build:latest
41
34
```
42
35
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
-
51
36
** Step 3:** Open another terminal and access the example API endpoint.
52
37
53
38
``` shell
You can’t perform that action at this time.
0 commit comments