From ac5aaf9ae0a036167876e467e6324f270e1fda72 Mon Sep 17 00:00:00 2001 From: arctic_hen7 Date: Sun, 2 Jan 2022 20:32:08 +1100 Subject: [PATCH] docs: fixed code in docker docs --- docs/0.3.x/en-US/deploying/docker.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/0.3.x/en-US/deploying/docker.md b/docs/0.3.x/en-US/deploying/docker.md index fd02e9481e..bce92fba0f 100644 --- a/docs/0.3.x/en-US/deploying/docker.md +++ b/docs/0.3.x/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"] +```