slim icon indicating copy to clipboard operation
slim copied to clipboard

minified image falling with ModuleNotFoundError

Open slayer321 opened this issue 4 years ago • 2 comments

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

  1. change the normal image with .slim image in docker-compose file
  2. Run docker-compose up
  3. project is not running

Specifications

  • Version: 1.37.0
  • Platform: Debian 5.10.46-4kali1

slayer321 avatar Sep 25 '21 05:09 slayer321

@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?

kcq avatar Sep 28 '21 05:09 kcq

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?

slayer321 avatar Sep 28 '21 10:09 slayer321