hello @vamsi koppolu
This is the way Container instances are build
They are designed to be ephemeral and stateless, which means any changes made within the container's filesystem are lost once the container is restarted or deleted.
To resolve this issue, you have a few options:
- Create a Custom Image: Modify the existing
gitblit
Docker image to include Vim (or any other changes you need) by creating a custom Dockerfile. In your Dockerfile, start from thegitblit
image and add the necessary commands to install Vim. Build this image and push it to a Docker registry (like Docker Hub or Azure Container Registry). Use this custom image for your Azure Container Instance. Example Dockerfile:DockerfileCopy code FROM gitblit/gitblit
RUN apt-get update && apt-get install -y vim
1. Move to Container Apps or Web Apps or AKS. This way you maintain your Image build with the way you prefer
--
I hope this helps!
The answer or portions of it may have been assisted by AI Source: ChatGPT Subscription
Kindly mark the answer as __Accepted__ and __Upvote__ in case it helped!
Regards