[PR #339] nginx-wsgi-flask: Correct build and run failures #392

Open
opened 2025-11-06 14:25:16 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/docker/awesome-compose/pull/339
Author: @OkkioXavier
Created: 3/25/2023
Status: 🔄 Open

Base: masterHead: nginx-wsgi-flask/fix/build_errors


📝 Commits (2)

  • 4c40626 fix: upgrades to correct jinja2 error escape module missing
  • dbb7ab6 fix: corrects CMD file argument

📊 Changes

2 files changed (+3 additions, -3 deletions)

View changed files

📝 nginx-wsgi-flask/flask/Dockerfile (+1 -1)
📝 nginx-wsgi-flask/flask/requirements.txt (+2 -2)

📄 Description

When building the docker container build failed with:

ImportError: cannot import name 'escape' from 'jinja2'

Fix:

Upgrade flask and gunicorn to remove dependency on escape

When running docker run from the flask directory the container exited immediately.

Fix:

CMD ["python", "wsgi.py"]

to

CMD ["python", "app.py"]

Functional testing:

docker-compose
image

docker run

image


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/docker/awesome-compose/pull/339 **Author:** [@OkkioXavier](https://github.com/OkkioXavier) **Created:** 3/25/2023 **Status:** 🔄 Open **Base:** `master` ← **Head:** `nginx-wsgi-flask/fix/build_errors` --- ### 📝 Commits (2) - [`4c40626`](https://github.com/docker/awesome-compose/commit/4c406263bb15e482ef62c1de543c294d329b920f) fix: upgrades to correct jinja2 error escape module missing - [`dbb7ab6`](https://github.com/docker/awesome-compose/commit/dbb7ab6031ea9d92ff8cc0c4888c24fd59439a1d) fix: corrects CMD file argument ### 📊 Changes **2 files changed** (+3 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `nginx-wsgi-flask/flask/Dockerfile` (+1 -1) 📝 `nginx-wsgi-flask/flask/requirements.txt` (+2 -2) </details> ### 📄 Description When building the docker container build failed with: ImportError: cannot import name 'escape' from 'jinja2' Fix: Upgrade flask and gunicorn to remove dependency on escape When running docker run from the flask directory the container exited immediately. Fix: ``` CMD ["python", "wsgi.py"] ``` to ``` CMD ["python", "app.py"] ``` Functional testing: docker-compose ![image](https://user-images.githubusercontent.com/16285389/227746979-ca2f0165-d30d-4898-b96c-b9da773a8497.png) docker run ![image](https://user-images.githubusercontent.com/16285389/227747004-1f4d00e4-3f78-443e-9768-bc730d38ef00.png) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-06 14:25:16 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/awesome-compose#392