'How to make change to a file inside a python-slim container?
I have a FROM python:3.8-slim-buster Dockerfile and I want to make a small change to the entrypoint.sh file. Unfortunately it seems there are no editors, neither vi or ed. Moreover, it is not possible to do apt-get update :(
What is the best way to have at least an editor?
Solution 1:[1]
I had the same issue with alpine images.
I solved the problem using Multi-Stage Builds in the Dockerfile.
https://docs.docker.com/develop/develop-images/multistage-build/
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Avik |
