Skip to content

Commit bb17230

Browse files
authored
Merge pull request #1734 from agilgur5/docs-syntax-highlighting
docs: add syntax highlighting to various code blocks
2 parents 2f3d47d + b9477fc commit bb17230

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Any other tags are considered deprecated and are no longer updated
5353
All distroless images are signed by [cosign](https://github.com/sigstore/cosign) with emphemeral keys (keyless) -- this is the only supported mechanism starting November 2023.
5454
We recommend verifying any distroless image you use before building your image. You can verify the keyless signature of any distroless image with:
5555

56-
```
56+
```sh
5757
cosign verify $IMAGE_NAME --certificate-oidc-issuer https://accounts.google.com --certificate-identity keyless@distroless.iam.gserviceaccount.com
5858
```
5959

@@ -64,13 +64,13 @@ That means the Dockerfile `ENTRYPOINT` command, when defined, must be specified
6464

6565
This works:
6666

67-
```
67+
```dockerfile
6868
ENTRYPOINT ["myapp"]
6969
```
7070

7171
But this does not work:
7272

73-
```
73+
```dockerfile
7474
ENTRYPOINT "myapp"
7575
```
7676

@@ -117,22 +117,22 @@ You can find other examples here:
117117
- [Node.js](examples/nodejs/Dockerfile)
118118
- [Rust](examples/rust/Dockerfile)
119119

120-
To run any example, go to the directory for the language and run
120+
To run any example, go to the directory for the language and run:
121121

122-
```
122+
```sh
123123
docker build -t myapp .
124124
docker run -t myapp
125125
```
126126

127-
To run the Node.js Express app [node-express](examples/nodejs/node-express) and expose the container's ports:
127+
To run the [Node.js Express example app](examples/nodejs/node-express) and expose the container's ports:
128128

129-
```
129+
```sh
130130
npm install # Install express and its transitive dependencies
131131
docker build -t myexpressapp . # Normal build command
132132
docker run -p 3000:3000 -t myexpressapp
133133
```
134134

135-
This should expose the Express application to your localhost:3000
135+
This should expose the Express application to your `localhost:3000`
136136

137137
### Bazel
138138

@@ -174,7 +174,7 @@ Distroless images are minimal and lack shell access. The `:debug` image set for
174174

175175
For example:
176176

177-
```
177+
```sh
178178
cd examples/python3/
179179
```
180180

@@ -187,13 +187,13 @@ WORKDIR /app
187187
CMD ["hello.py", "/etc"]
188188
```
189189

190-
then build and launch with an shell entrypoint:
190+
then build and launch with a shell entrypoint:
191191

192-
```
193-
$ docker build -t my_debug_image .
192+
```sh
193+
docker build -t my_debug_image .
194194
```
195195

196-
```
196+
```sh
197197
$ docker run --entrypoint=sh -ti my_debug_image
198198

199199
/app # ls

0 commit comments

Comments
 (0)