Skip to content

Commit 5ab9903

Browse files
committed
docs: merged last changes into next
1 parent ac5aaf9 commit 5ab9903

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/next/en-US/deploying/docker.md

+6
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Before proceeding with this section, you should be familiar with Docker's [multi
99
<details>
1010
<summary>Production example using the size optimizations plugin</summary>
1111

12+
```dockerfile
1213
# get the base image
1314
FROM rust:1.57-slim AS build
1415

@@ -95,12 +96,14 @@ COPY --from=build /app/simple/pkg /app/
9596
ENV HOST=0.0.0.0
9697

9798
CMD ["./server"]
99+
```
98100

99101
</details>
100102

101103
<details>
102104
<summary>Production examples using `wee_alloc` manually</summary>
103105

106+
```dockerfile
104107
# get the base image
105108
FROM rust:1.57-slim AS build
106109

@@ -194,12 +197,14 @@ COPY --from=build /app/tiny/pkg /app/
194197
ENV HOST=0.0.0.0
195198

196199
CMD ["./server"]
200+
```
197201

198202
</details>
199203

200204
<details>
201205
<summary>Test example for deploying a specific branch from the Perseus repository</summary>
202206

207+
```dockerfile
203208
# get the base image
204209
FROM rust:1.57-slim AS build
205210

@@ -257,5 +262,6 @@ COPY --from=build /app/perseus-branch/examples/tiny/pkg /app/
257262
ENV HOST=0.0.0.0
258263

259264
CMD ["./server"]
265+
```
260266

261267
</details>

0 commit comments

Comments
 (0)