Explorar el Código

Merge pull request #1689 from jdrouet/patch-1

clean dockerfile layer in example
Tianon Gravi hace 5 años
padre
commit
97ba441f46
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      rust/content.md

+ 1 - 1
rust/content.md

@@ -39,7 +39,7 @@ COPY . .
 RUN cargo install --path .
 
 FROM debian:buster-slim
-RUN apt-get update && apt-get install -y extra-runtime-dependencies
+RUN apt-get update && apt-get install -y extra-runtime-dependencies && rm -rf /var/lib/apt/lists/*
 COPY --from=builder /usr/local/cargo/bin/myapp /usr/local/bin/myapp
 CMD ["myapp"]
 ```