diff --git a/Dockerfile b/Dockerfile index 932cdd4..2ac2e12 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/main.py b/main.py index e5bf450..72ec938 100755 --- a/main.py +++ b/main.py @@ -125,7 +125,7 @@ def run_prod(args): """ command = [ "docker", "run", "-d", - "-p", "{PORT}:{PORT}", + "-p", "{PORT}:5000", "--name", "portfolio", "application-portfolio" ]