/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

pythonspeed.com
| | blog.fredrb.com

Tiny Python Docker Images I was looking for a way to create a very small docker image for a Python project. The python project I created is a Telegram bot quizzes me in German. The python-telegram-bot pip package requires gcc to fully build- so using alpine image did not do the trick for me. I searched online, found a few example bot none that would actually do what I needed with a reasonable image size.
2.8 parsecs

Travel
| |
| | 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.
2.4 parsecs

Travel
| |
| | 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.
2.4 parsecs

Travel
| |
| | kevingimbel.de

A digital garden of sorts; always growing
19.1 parsecs

Travel
|