File tree 1 file changed +6
-0
lines changed
docs/next/en-US/deploying
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ Before proceeding with this section, you should be familiar with Docker's [multi
9
9
<details >
10
10
<summary >Production example using the size optimizations plugin</summary >
11
11
12
+ ``` dockerfile
12
13
# get the base image
13
14
FROM rust:1.57-slim AS build
14
15
@@ -95,12 +96,14 @@ COPY --from=build /app/simple/pkg /app/
95
96
ENV HOST=0.0.0.0
96
97
97
98
CMD ["./server" ]
99
+ ```
98
100
99
101
</details >
100
102
101
103
<details >
102
104
<summary >Production examples using `wee_alloc` manually</summary >
103
105
106
+ ``` dockerfile
104
107
# get the base image
105
108
FROM rust:1.57-slim AS build
106
109
@@ -194,12 +197,14 @@ COPY --from=build /app/tiny/pkg /app/
194
197
ENV HOST=0.0.0.0
195
198
196
199
CMD ["./server" ]
200
+ ```
197
201
198
202
</details >
199
203
200
204
<details >
201
205
<summary >Test example for deploying a specific branch from the Perseus repository</summary >
202
206
207
+ ``` dockerfile
203
208
# get the base image
204
209
FROM rust:1.57-slim AS build
205
210
@@ -257,5 +262,6 @@ COPY --from=build /app/perseus-branch/examples/tiny/pkg /app/
257
262
ENV HOST=0.0.0.0
258
263
259
264
CMD ["./server" ]
265
+ ```
260
266
261
267
</details >
You can’t perform that action at this time.
0 commit comments