drf_course
drf_course copied to clipboard
Fix Docker Build - Exit Code 1 (Missing Semicolon in Pip Install)
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.