From 5ab99033fa1d186e394219bce8146d933a2eb88d Mon Sep 17 00:00:00 2001 From: arctic_hen7 Date: Sun, 2 Jan 2022 20:35:13 +1100 Subject: [PATCH] docs: merged last changes into `next` --- docs/next/en-US/deploying/docker.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/next/en-US/deploying/docker.md b/docs/next/en-US/deploying/docker.md index fd02e9481e..bce92fba0f 100644 --- a/docs/next/en-US/deploying/docker.md +++ b/docs/next/en-US/deploying/docker.md @@ -9,6 +9,7 @@ Before proceeding with this section, you should be familiar with Docker's [multi
Production example using the size optimizations plugin +```dockerfile # get the base image FROM rust:1.57-slim AS build @@ -95,12 +96,14 @@ COPY --from=build /app/simple/pkg /app/ ENV HOST=0.0.0.0 CMD ["./server"] +```
Production examples using `wee_alloc` manually +```dockerfile # get the base image FROM rust:1.57-slim AS build @@ -194,12 +197,14 @@ COPY --from=build /app/tiny/pkg /app/ ENV HOST=0.0.0.0 CMD ["./server"] +```
Test example for deploying a specific branch from the Perseus repository +```dockerfile # get the base image FROM rust:1.57-slim AS build @@ -257,5 +262,6 @@ COPY --from=build /app/perseus-branch/examples/tiny/pkg /app/ ENV HOST=0.0.0.0 CMD ["./server"] +```