minified image falling with ModuleNotFoundError
Expected Behavior
I'm using this project and trying to minify the image and then run it . But when I'm changing the .slim image in the docker-compose file the project is falling with ModuleNotFoundError: No module named 'jinja2.ext' error.
Actual Behavior
The project works fine when I am not using the .slim image
Steps to Reproduce the Problem
- change the normal image with
.slimimage in docker-compose file - Run docker-compose up
- project is not running
Specifications
- Version: 1.37.0
- Platform: Debian 5.10.46-4kali1
@slayer321 thank you for opening the issue and providing the project link! How did you slim your app image? Do you mind sharing the command line you used for docker-slim build?
The project I mention has the docker-compose and I'm using the image name teamcloudyuga/rsvpapp:mooc in it
When I run this docker-slim command
docker-slim build --target teamcloudyuga/rsvpapp --http-probe=false
I'm getting teamcloudyuga/rsvpapp.slim:latest image and when it is added in docker-compose the project is falling with ModuleNotFoundError .
docker-slim works with docker-compose right?