drf_course icon indicating copy to clipboard operation
drf_course copied to clipboard

Fix Docker Build - Exit Code 1 (Missing Semicolon in Pip Install)

Open jungalprog opened this issue 9 months ago • 0 comments

Resolved a syntax issue in the Dockerfile_app that was causing the build to fail with Exit Code 1. The error was due to a missing semicolon (;) after pip install --upgrade pip. This has been fixed by ensuring proper command chaining.

RUN set -e;
apt-get update ;
apt-get -y install netcat-traditional ;
apt-get -y install gettext ;
apt-get -y install httpie ;
pip install --upgrade pip ;
pip install flask

Additionally, replaced netcat with netcat-traditional to prevent potential package conflicts during installation in the Dockerfile.

jungalprog avatar Mar 02 '25 02:03 jungalprog