Solved other port mapping issues

This commit is contained in:
Kevin Veen-Birkenbach committed 2025-07-05 11:06:42 +02:00
1 parent 5fc19f6ccb
commit 9c24a8658f
2 files changed
+2 -3

No files matched your search

+1 -2
View File
@@ -11,5 +11,4 @@ RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY app/ .
# Start command using shell to allow env substitution
CMD sh -c "exec python app.py --port=\${PORT}"
CMD ["python", "app.py"]
+1 -1
View File
@@ -125,7 +125,7 @@ def run_prod(args):
"""
command = [
"docker", "run", "-d",
"-p", "{PORT}:{PORT}",
"-p", "{PORT}:5000",
"--name", "portfolio",
"application-portfolio"
]