Solved other port mapping issues

This commit is contained in:
Kevin Veen-Birkenbach 2025-07-05 11:06:42 +02:00
parent 5fc19f6ccb
commit 9c24a8658f
No known key found for this signature in database
GPG Key ID: 44D8F11FD62F878E
2 changed files with 2 additions and 3 deletions

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"]

View File

@ -125,7 +125,7 @@ def run_prod(args):
"""
command = [
"docker", "run", "-d",
"-p", "{PORT}:{PORT}",
"-p", "{PORT}:5000",
"--name", "portfolio",
"application-portfolio"
]