Use shell form for CMD in Dockerfile

Switched CMD to use shell form instead of exec form for running the application. This simplifies the command syntax and ensures compatibility in environments where exec form parsing may cause issues.
This commit is contained in:
ThomasTaroni 2025-05-31 20:06:23 +02:00
parent 3b75d04f32
commit dc93de9b18

View file

@ -25,4 +25,4 @@ COPY src/ /app/
EXPOSE 8000
# Set the default command to run the app with `uvicorn`
CMD ["python", "$APP_ENTRYPOINT"]
CMD python "$APP_ENTRYPOINT"