"Distroless" images contain only your application and its runtime dependencies. They do not contain package managers, shells or any other programs you would expect to find in a standard Linux distribution. Use this tag when looking for help creating images that have a distroless base-image.
Questions tagged [distroless]
34 questions
-1
votes
1 answer
Elegant Python distroless Docker image web API
I'm experimenting with distroless Docker images from Google and I'd like to build an elegant FastAPI (or Flask) web API. I've found example articles here and here but I didn't find them particularly "pythonic".
This is my main.py
from fastapi import…

Patimir
- 19
- 5
-1
votes
1 answer
Google Distroless image chmod not found?
I am using this:
FROM gcr.io/distroless/python3-debian11
When I build my docker file,
> [stage-1 6/6] RUN /chmod +x /scripts/main:
#17 0.204 /bin/sh: 1: /chmod: not found
Why is chmod and ls not found?
When I try to ls inside the container:
#…

bonijad383
- 109
- 3
- 7
-1
votes
1 answer
Why does switching the base image in a multi-stage Docker build from distroless to alpine cause "exec user process caused: no such file or directory"?
I'm following the guide at https://docs.docker.com/language/golang/build-images/ to learn the best way to do a multistage Docker build for a Go application. I cloned the repo:
git clone https://github.com/olliefr/docker-gs-ping
And I ran the…

Matt Welke
- 1,441
- 1
- 15
- 40
-1
votes
1 answer
What is the value of $JAVA_HOME with gcr.io/distroless/java?
What is the value of $JAVA_HOME with gcr.io/distroless/java images?

Niel de Wet
- 7,806
- 9
- 63
- 100