Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 938
nowox Avatar asked Dec 04 '25 20:12

nowox


1 Answers

At the very least apt-get should be available.

I ended up just doing apt-get install nano.

like image 101
Akaisteph7 Avatar answered Dec 07 '25 14:12

Akaisteph7



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!