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 application code
COPY app/ . COPY app/ .
# Start command using shell to allow env substitution CMD ["python", "app.py"]
CMD sh -c "exec python app.py --port=\${PORT}"
+1 -1
View File
@@ -125,7 +125,7 @@ def run_prod(args):
""" """
command = [ command = [
"docker", "run", "-d", "docker", "run", "-d",
"-p", "{PORT}:{PORT}", "-p", "{PORT}:5000",
"--name", "portfolio", "--name", "portfolio",
"application-portfolio" "application-portfolio"
] ]