/explore
|
You are here |
pythonspeed.com | ||
| | | | |
memo.mx
Docker multi-stage build is a great way to build a container images with a minimal footprint. Compiled languages like Go or Rust can take advantage of this by just shipping a binary to a container This is an example from the official docs: FROM golang:1.16 WORKDIR /go/src/github.com/alexellis/href-counter/ RUN go get -d -v golang.org/x/net/html COPY app.go ./ RUN CGO_ENABLED=0 go build -a -installsuffix cgo -o app . FROM alpine:latest RUN apk --no-cache add ca-certificates WORKDIR /root/ COPY --from=0 /go/src/github. |
|
| | | | | ||
| | | | |
rpep.dev
Alpine Linux is a distribution that is designed to be lightweight. In particular, its seen a lot of use in Docker images because the resulting image bundles are considerably smaller than those generated by other minimal distros. However, in the context of building a Docker image for a Python application, its worth thinking carefully before using Alpine, as it can often result in slower builds and counterintuitively it can even result in larger images occasionally. |
|
| | | | | ||
| | | | |
andyfreeland.net
[AI summary] A technical guide demonstrating how to reduce Docker image sizes for Python applications by using Docker BuildKit's bind mount feature instead of copying layers in multi-stage builds. |
|
| | | | | ||
| | | | |
plasma-umass.org
Demo of the Doppio Runtime System. Contribute to plasma-umass/doppio-demo development by creating an account on GitHub. |
|
| | | |||